Class: Raylib::MaterialMap
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Raylib::MaterialMap
- Defined in:
- lib/raylib/core/structs/material_map.rb
Overview
MaterialMap
Class Method Summary collapse
Instance Method Summary collapse
-
#color ⇒ Color
Material map color.
-
#color=(new_color) ⇒ Object
Sets Material map color.
-
#texture ⇒ Texture2D
Material map texture.
-
#texture=(new_texture) ⇒ Object
Sets Material map texture.
- #to_s ⇒ Object
-
#value ⇒ Float
Material map value.
-
#value=(new_value) ⇒ Object
Sets Material map value.
Class Method Details
.create(texture, color, value) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/raylib/core/structs/material_map.rb', line 10 def self.create(texture, color, value) new.tap do |instance| instance[:texture] = texture instance[:color] = color instance[:value] = value end end |
Instance Method Details
#color ⇒ Color
Material map color
33 |
# File 'lib/raylib/core/structs/material_map.rb', line 33 def color = self[:color] |
#color=(new_color) ⇒ Object
Sets Material map color
36 37 38 |
# File 'lib/raylib/core/structs/material_map.rb', line 36 def color=(new_color) self[:color] = new_color end |
#texture ⇒ Texture2D
Material map texture
24 |
# File 'lib/raylib/core/structs/material_map.rb', line 24 def texture = self[:texture] |
#texture=(new_texture) ⇒ Object
Sets Material map texture
27 28 29 |
# File 'lib/raylib/core/structs/material_map.rb', line 27 def texture=(new_texture) self[:texture] = new_texture end |
#to_s ⇒ Object
18 19 20 |
# File 'lib/raylib/core/structs/material_map.rb', line 18 def to_s "Raylib::MaterialMap##{object_id} texture=#{texture} color=#{color} value=#{value}" end |
#value ⇒ Float
Material map value
42 |
# File 'lib/raylib/core/structs/material_map.rb', line 42 def value = self[:value] |
#value=(new_value) ⇒ Object
Sets Material map value
45 46 47 |
# File 'lib/raylib/core/structs/material_map.rb', line 45 def value=(new_value) self[:value] = new_value end |