Class: Ritsu::SrcFiles::VertFile
Instance Attribute Summary
#owner, #src_path
Instance Method Summary
collapse
#abs_path, #base_name, #create, find_by_src_path, #include_in_source_files?, is_valid_src_path?, #project, #remove, #update, #update_content, validate_instance
Methods included from Utility
platform
included, #initialize_instance
Constructor Details
#initialize(src_path, owner) ⇒ VertFile
Returns a new instance of VertFile.
7
8
9
|
# File 'lib/ritsu/ext/glsl/src_files/vert_file.rb', line 7
def initialize(src_path, owner)
super(src_path, owner)
end
|
Instance Method Details
#code_var_name ⇒ Object
35
36
37
|
# File 'lib/ritsu/ext/glsl/src_files/vert_file.rb', line 35
def code_var_name
src_path.gsub(/[.\/]+/,'_') + "_code"
end
|
#cpp_file? ⇒ Boolean
27
28
29
|
# File 'lib/ritsu/ext/glsl/src_files/vert_file.rb', line 27
def cpp_file?
false
end
|
#cpp_file_base_name ⇒ Object
31
32
33
|
# File 'lib/ritsu/ext/glsl/src_files/vert_file.rb', line 31
def cpp_file_base_name
base_name.gsub(/[.\/]+/,'_') + ".cpp"
end
|
#frag_file? ⇒ Boolean
19
20
21
|
# File 'lib/ritsu/ext/glsl/src_files/vert_file.rb', line 19
def frag_file?
false
end
|
#glsl_file? ⇒ Boolean
11
12
13
|
# File 'lib/ritsu/ext/glsl/src_files/vert_file.rb', line 11
def glsl_file?
true
end
|
23
24
25
|
# File 'lib/ritsu/ext/glsl/src_files/vert_file.rb', line 23
def
false
end
|
#vert_file? ⇒ Boolean
15
16
17
|
# File 'lib/ritsu/ext/glsl/src_files/vert_file.rb', line 15
def vert_file?
true
end
|