class Game::Texture

Defined in:

game/texture.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(image : Image) #

[View source]
def self.new(filename : String) #

[View source]
def self.new #

[View source]

Class Method Detail

def self.get(filename, image : Image) #

[View source]
def self.load(image : Image) #

[View source]
def self.load(filename) #

[View source]

Instance Method Detail

def draw(x, y, rotation = 0, scale = 1, tint = Color::White) #

[View source]
def get(filename, image : Image) #

[View source]
def height(*args, **options) #

[View source]
def height(*args, **options, &) #

[View source]
def load(image : Image) #

[View source]
def load(filename : String) #

[View source]
def texture : LibRay::Texture2D #

[View source]
def to_image #

[View source]
def to_struct #

[View source]
def unload #

[View source]
def width(*args, **options) #

[View source]
def width(*args, **options, &) #

[View source]