Class: Raylib::ModelAnimation
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Raylib::ModelAnimation
- Defined in:
- lib/raylib/core/structs/model_animation.rb
Overview
ModelAnimation
Class Method Summary collapse
Instance Method Summary collapse
-
#bone_count ⇒ Integer
Number of bones.
-
#bone_count=(new_bone_count) ⇒ Object
Sets Number of bones.
-
#bones ⇒ BoneInfo *
Bones information (skeleton).
-
#bones=(new_bones) ⇒ Object
Sets Bones information (skeleton).
-
#frame_count ⇒ Integer
Number of animation frames.
-
#frame_count=(new_frame_count) ⇒ Object
Sets Number of animation frames.
-
#frame_poses ⇒ Transform **
Poses array by frame.
-
#frame_poses=(new_frame_poses) ⇒ Object
Sets Poses array by frame.
- #to_s ⇒ Object
Class Method Details
.create(bone_count, frame_count, bones, frame_poses) ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/raylib/core/structs/model_animation.rb', line 11 def self.create(bone_count, frame_count, bones, frame_poses) new.tap do |instance| instance[:boneCount] = bone_count instance[:frameCount] = frame_count instance[:bones] = bones instance[:framePoses] = frame_poses end end |
Instance Method Details
#bone_count ⇒ Integer
Number of bones
26 |
# File 'lib/raylib/core/structs/model_animation.rb', line 26 def bone_count = self[:boneCount] |
#bone_count=(new_bone_count) ⇒ Object
Sets Number of bones
29 30 31 |
# File 'lib/raylib/core/structs/model_animation.rb', line 29 def bone_count=(new_bone_count) self[:boneCount] = new_bone_count end |
#bones ⇒ BoneInfo *
Bones information (skeleton)
44 |
# File 'lib/raylib/core/structs/model_animation.rb', line 44 def bones = self[:bones] |
#bones=(new_bones) ⇒ Object
Sets Bones information (skeleton)
47 48 49 |
# File 'lib/raylib/core/structs/model_animation.rb', line 47 def bones=(new_bones) self[:bones] = new_bones end |
#frame_count ⇒ Integer
Number of animation frames
35 |
# File 'lib/raylib/core/structs/model_animation.rb', line 35 def frame_count = self[:frameCount] |
#frame_count=(new_frame_count) ⇒ Object
Sets Number of animation frames
38 39 40 |
# File 'lib/raylib/core/structs/model_animation.rb', line 38 def frame_count=(new_frame_count) self[:frameCount] = new_frame_count end |
#frame_poses ⇒ Transform **
Poses array by frame
53 |
# File 'lib/raylib/core/structs/model_animation.rb', line 53 def frame_poses = self[:framePoses] |
#frame_poses=(new_frame_poses) ⇒ Object
Sets Poses array by frame
56 57 58 |
# File 'lib/raylib/core/structs/model_animation.rb', line 56 def frame_poses=(new_frame_poses) self[:framePoses] = new_frame_poses end |
#to_s ⇒ Object
20 21 22 |
# File 'lib/raylib/core/structs/model_animation.rb', line 20 def to_s "Raylib::ModelAnimation##{object_id} bone_count=#{bone_count} frame_count=#{frame_count} bones=#{bones} frame_poses=#{frame_poses}" end |