class Boleite::Sprite

Included Modules

Defined in:

boleite/graphics/sprite.cr
boleite/graphics/sprite/vertices.cr

Constructors

Instance Method Summary

Instance methods inherited from module Boleite::Transformable

move(x, y)
move(offset)
move
, origo origo, origo=(origo) origo=, position position, position=(pos) position=, rotate(rot) rotate, rotation rotation, rotation=(rot) rotation=, scale scale, scale=(scale) scale=, transformation transformation, update_transformation update_transformation

Instance methods inherited from module Boleite::Drawable

render(renderer : Renderer, transform : Matrix44f32) : Void render

Constructor Detail

def self.new(texture : Texture) #

[View source]

Instance Method Detail


[View source]
def color=(color : Boleite::VectorImp(Float32, 4)) #

[View source]

[View source]
def size=(size : Boleite::VectorImp(UInt32, 2)) #

[View source]
def texture : Boleite::Texture #

[View source]
def texture=(texture : Boleite::Texture) #

[View source]
def texture_rect : Boleite::Rect(Int32) #

[View source]
def texture_rect=(rect : Boleite::Rect(Int32)) #

[View source]