abstract class Boleite::Texture

Direct Known Subclasses

Defined in:

boleite/graphics/texture.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.load_file(file, graphics) : Texture #

[View source]
def self.load_image(img, graphics) : Texture #

[View source]

Class Method Detail

def self.bpp_to_format(bpp) #

[View source]

Instance Method Detail

abstract def activate(&) #

[View source]
abstract def create(width : UInt32, height : UInt32, format : Format, type : Type) : Void #

[View source]
abstract def create_depth(width : UInt32, height : UInt32) : Void #

[View source]
abstract def format : Format #

[View source]
abstract def is_depth? : Bool #

[View source]
abstract def is_repeating? : Bool #

[View source]
abstract def is_smooth? : Bool #

[View source]
abstract def repeating=(val : Bool) : Bool #

[View source]
abstract def size : Vector2u #

[View source]
abstract def smooth=(val : Bool) : Bool #

[View source]
abstract def type : Type #

[View source]
def update(bytes : Bytes, width : UInt32, height : UInt32, x_dest : UInt32, y_dest : UInt32, format : Format) : Void #

[View source]
abstract def update(pixels : Pointer(UInt8), width : UInt32, height : UInt32, x_dest : UInt32, y_dest : UInt32, format : Format) : Void #

[View source]
abstract def update(pixels : Pointer(Float32), width : UInt32, height : UInt32, x_dest : UInt32, y_dest : UInt32, format : Format) : Void #

[View source]
abstract def update(texture : Texture, x : UInt32, y : UInt32) : Void #

[View source]
def update(img : Image) : Void #

[View source]
def update(texture : Texture) : Void #

[View source]