Class: Assimp::Color4D
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Assimp::Color4D
show all
- Extended by:
- StructAccessors
- Defined in:
- lib/assimp/color4.rb
Instance Method Summary
collapse
extended, has_ref?, struct_array_attr_accessor, struct_array_attr_checker, struct_array_attr_reader, struct_array_attr_writer, struct_attr_accessor, struct_attr_reader, struct_attr_writer, struct_ref_array_attr_accessor, struct_ref_array_attr_reader, struct_ref_array_attr_writer
Instance Method Details
#set(r, g, b, a) ⇒ Object
11
12
13
14
15
16
17
|
# File 'lib/assimp/color4.rb', line 11
def set(r, g, b, a)
self.r = r
self.g = g
self.b = b
self.a = a
self
end
|
#to_s ⇒ Object
19
20
21
|
# File 'lib/assimp/color4.rb', line 19
def to_s
"[#{r}, #{g}, #{b}, #{a}]"
end
|