Class: Ritsu::SrcFiles::FragFile

Inherits:
Ritsu::SrcFile show all
Defined in:
lib/ritsu/ext/glsl/src_files/frag_file.rb

Instance Attribute Summary

Attributes inherited from Ritsu::SrcFile

#owner, #src_path

Instance Method Summary collapse

Methods inherited from Ritsu::SrcFile

#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

Methods included from Utility::InstanceSet

included, #initialize_instance

Constructor Details

#initialize(src_path, owner) ⇒ FragFile

Returns a new instance of FragFile.



7
8
9
# File 'lib/ritsu/ext/glsl/src_files/frag_file.rb', line 7

def initialize(src_path, owner)
  super(src_path, owner)
end

Instance Method Details

#code_var_nameObject



35
36
37
# File 'lib/ritsu/ext/glsl/src_files/frag_file.rb', line 35

def code_var_name
  src_path.gsub(/[.\/]+/,'_') + "_code"
end

#cpp_file?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/ritsu/ext/glsl/src_files/frag_file.rb', line 27

def cpp_file?
  false
end

#cpp_file_base_nameObject



31
32
33
# File 'lib/ritsu/ext/glsl/src_files/frag_file.rb', line 31

def cpp_file_base_name
  base_name.gsub(/[.\/]+/,'_') + ".cpp"
end

#frag_file?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/ritsu/ext/glsl/src_files/frag_file.rb', line 19

def frag_file?
  true
end

#glsl_file?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/ritsu/ext/glsl/src_files/frag_file.rb', line 11

def glsl_file?
  true
end

#header_file?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/ritsu/ext/glsl/src_files/frag_file.rb', line 23

def header_file?
  false
end

#vert_file?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/ritsu/ext/glsl/src_files/frag_file.rb', line 15

def vert_file?
  false
end