class Game::Model

Defined in:

game/model.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(model : LibRay::Model = LibRay::Model.new, position : ::Game::Vector3 = Vector3.new, scale : Float32 | Int32 = 1, tint : ::Game::Color = Color::White) #

[View source]

Class Method Detail

def self.draw_grid(slices = 10, spacing = 1) #

[View source]
def self.from_mesh(mesh : Mesh) #

[View source]

Instance Method Detail

def draw #

[View source]
def position : Vector3 #

[View source]
def position=(position : Vector3) #

[View source]
def rotate_x(degrees : Int32 | Float32) #

[View source]
def rotate_y(degrees : Int32 | Float32) #

[View source]
def rotate_z(degrees : Int32 | Float32) #

[View source]
def scale(v : Vector3) #

[View source]
def scale : Int32 | Float32 #

[View source]
def scale=(scale : Int32 | Float32) #

[View source]
def set_mesh_material(mesh_id) #

[View source]
def set_texture(texture) #

[View source]
def tint : Color #

[View source]
def tint=(tint : Color) #

[View source]
def to_struct : LibRay::Model #

[View source]
def transform=(transform : Matrix) #

[View source]
def translate(v : Vector3) #

[View source]