Class: Raylib::Model

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/raylib_main.rb,
lib/raylib_helper.rb

Overview

Model, meshes, materials and animation data

Instance Method Summary collapse

Instance Method Details

#bind_pose_transform(index) ⇒ Object

Returns Transform.

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

#bindPoseObject



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_countint

GetModelBoneCount (ruby raylib original)

Returns:

  • (int)


334
335
336
# File 'lib/raylib_helper.rb', line 334

def bone_count
  self[:boneCount]
end

#bone_info(index) ⇒ Object

Returns BoneInfo.

Returns:

  • BoneInfo



339
340
341
# File 'lib/raylib_helper.rb', line 339

def bone_info(index)
  BoneInfo.new(self[:bones] + index * BoneInfo.size)
end

#boneCountObject



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

#bonesObject



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)

Parameters:

  • index (int) (defaults to: 0)

    0 ~ materialCount

Returns:



322
323
324
# File 'lib/raylib_helper.rb', line 322

def material(index = 0)
  Material.new(self[:materials] + index * Material.size)
end

#material_countint

GetModelMaterialCount (ruby raylib original)

Returns:

  • (int)


328
329
330
# File 'lib/raylib_helper.rb', line 328

def material_count
  self[:materialCount]
end

#materialCountObject



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

#materialsObject



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

#meshCountObject



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

#meshesObject



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

#meshMaterialObject



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

#transformObject



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