class Texture

Defined in:

texture.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(renderer : Pointer(LibSDL::Renderer)) #

[View source]

Instance Method Detail

def finalize #

[View source]
def free #

[View source]
def height : Int32 #

[View source]
def load_from_file(path : String) #

[View source]
def render(x : Int, y : Int, clip : Pointer(LibSDL::Rect) | Nil = nil, angle : Float = 0.0, center : Pointer(LibSDL::Point) | Nil = nil, flip : LibSDL::RendererFlip = LibSDL::RendererFlip::FLIP_NONE) #

[View source]
def set_alpha(alpha : UInt8) #

[View source]
def set_blend_mode(blending : LibSDL::BlendMode) #

[View source]
def set_color(red : UInt8, green : UInt8, blue : UInt8) #

[View source]
def width : Int32 #

[View source]