Class: Raylib::Model
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Raylib::Model
- Defined in:
- lib/raylib_main.rb,
lib/raylib_helper.rb
Overview
Model, meshes, materials and animation data
Instance Method Summary collapse
-
#bind_pose_transform(index) ⇒ Object
Transform.
- #bindPose ⇒ Object
- #bindPose=(v) ⇒ Object
-
#bone_count ⇒ int
GetModelBoneCount (ruby raylib original).
-
#bone_info(index) ⇒ Object
BoneInfo.
- #boneCount ⇒ Object
- #boneCount=(v) ⇒ Object
- #bones ⇒ Object
- #bones=(v) ⇒ Object
-
#material(index = 0) ⇒ Material
GetModelMaterial (ruby raylib original).
-
#material_count ⇒ int
GetModelMaterialCount (ruby raylib original).
- #materialCount ⇒ Object
- #materialCount=(v) ⇒ Object
- #materials ⇒ Object
- #materials=(v) ⇒ Object
- #meshCount ⇒ Object
- #meshCount=(v) ⇒ Object
- #meshes ⇒ Object
- #meshes=(v) ⇒ Object
- #meshMaterial ⇒ Object
- #meshMaterial=(v) ⇒ Object
- #transform ⇒ Object
- #transform=(v) ⇒ Object
Instance Method Details
#bind_pose_transform(index) ⇒ Object
Returns Transform.
344 345 346 |
# File 'lib/raylib_helper.rb', line 344 def bind_pose_transform(index) Transform.new(self[:bindPose] + index * Transform.size) end |
#bindPose ⇒ Object
886 |
# File 'lib/raylib_main.rb', line 886 def bindPose = self[:bindPose] |
#bindPose=(v) ⇒ Object
887 |
# File 'lib/raylib_main.rb', line 887 def bindPose=(v) self[:bindPose] = v end |
#bone_count ⇒ int
GetModelBoneCount (ruby raylib original)
334 335 336 |
# File 'lib/raylib_helper.rb', line 334 def bone_count self[:boneCount] end |
#bone_info(index) ⇒ Object
Returns BoneInfo.
339 340 341 |
# File 'lib/raylib_helper.rb', line 339 def bone_info(index) BoneInfo.new(self[:bones] + index * BoneInfo.size) end |
#boneCount ⇒ Object
882 |
# File 'lib/raylib_main.rb', line 882 def boneCount = self[:boneCount] |
#boneCount=(v) ⇒ Object
883 |
# File 'lib/raylib_main.rb', line 883 def boneCount=(v) self[:boneCount] = v end |
#bones ⇒ Object
884 |
# File 'lib/raylib_main.rb', line 884 def bones = self[:bones] |
#bones=(v) ⇒ Object
885 |
# File 'lib/raylib_main.rb', line 885 def bones=(v) self[:bones] = v end |
#material(index = 0) ⇒ Material
GetModelMaterial (ruby raylib original)
322 323 324 |
# File 'lib/raylib_helper.rb', line 322 def material(index = 0) Material.new(self[:materials] + index * Material.size) end |
#material_count ⇒ int
GetModelMaterialCount (ruby raylib original)
328 329 330 |
# File 'lib/raylib_helper.rb', line 328 def material_count self[:materialCount] end |
#materialCount ⇒ Object
874 |
# File 'lib/raylib_main.rb', line 874 def materialCount = self[:materialCount] |
#materialCount=(v) ⇒ Object
875 |
# File 'lib/raylib_main.rb', line 875 def materialCount=(v) self[:materialCount] = v end |
#materials ⇒ Object
878 |
# File 'lib/raylib_main.rb', line 878 def materials = self[:materials] |
#materials=(v) ⇒ Object
879 |
# File 'lib/raylib_main.rb', line 879 def materials=(v) self[:materials] = v end |
#meshCount ⇒ Object
872 |
# File 'lib/raylib_main.rb', line 872 def meshCount = self[:meshCount] |
#meshCount=(v) ⇒ Object
873 |
# File 'lib/raylib_main.rb', line 873 def meshCount=(v) self[:meshCount] = v end |
#meshes ⇒ Object
876 |
# File 'lib/raylib_main.rb', line 876 def meshes = self[:meshes] |
#meshes=(v) ⇒ Object
877 |
# File 'lib/raylib_main.rb', line 877 def meshes=(v) self[:meshes] = v end |
#meshMaterial ⇒ Object
880 |
# File 'lib/raylib_main.rb', line 880 def meshMaterial = self[:meshMaterial] |
#meshMaterial=(v) ⇒ Object
881 |
# File 'lib/raylib_main.rb', line 881 def meshMaterial=(v) self[:meshMaterial] = v end |
#transform ⇒ Object
870 |
# File 'lib/raylib_main.rb', line 870 def transform = self[:transform] |
#transform=(v) ⇒ Object
871 |
# File 'lib/raylib_main.rb', line 871 def transform=(v) self[:transform] = v end |