class Boleite::Private::OpenGLTexture

Included Modules

Defined in:

boleite/backend/graphics/opengl_texture.cr

Constructors

Class Method Summary

Macro Summary

Instance Method Summary

Instance methods inherited from class Boleite::Texture

activate(&) activate, create(width : UInt32, height : UInt32, format : Format, type : Type) : Void create, create_depth(width : UInt32, height : UInt32) : Void create_depth, format : Format format, is_depth? : Bool is_depth?, is_repeating? : Bool is_repeating?, is_smooth? : Bool is_smooth?, repeating=(val : Bool) : Bool repeating=, size : Vector2u size, smooth=(val : Bool) : Bool smooth=, type : Type type, update(bytes : Bytes, width : UInt32, height : UInt32, x_dest : UInt32, y_dest : UInt32, format : Format) : Void
update(pixels : Pointer(UInt8), width : UInt32, height : UInt32, x_dest : UInt32, y_dest : UInt32, format : Format) : Void
update(pixels : Pointer(Float32), width : UInt32, height : UInt32, x_dest : UInt32, y_dest : UInt32, format : Format) : Void
update(texture : Texture, x : UInt32, y : UInt32) : Void
update(img : Image) : Void
update(texture : Texture) : Void
update

Constructor methods inherited from class Boleite::Texture

load_file(file, graphics) : Texture load_file, load_image(img, graphics) : Texture load_image

Class methods inherited from class Boleite::Texture

bpp_to_format(bpp) bpp_to_format

Constructor Detail

def self.new #

[View source]

Class Method Detail

def self.maximum_size : UInt32 #

[View source]
def self.translate_external_format(format) #

[View source]
def self.translate_format(format, type) #

[View source]
def self.translate_unpack_alignment(format) #

[View source]

Macro Detail

macro assert(test) #

[View source]
macro ensures(test) #

[View source]
macro invariant(test) #

[View source]
macro requires(test) #

[View source]

Instance Method Detail

def activate(&) #

[View source]
def activate #

[View source]
def bind #

[View source]
def contract_ensures_update(return_value, pixels : Pointer(UInt8), width, height, x_dest, y_dest, format : Format) #

[View source]
def contract_ensures_update(return_value, pixels : Pointer(Float32), width, height, x_dest, y_dest, format : Format) #

[View source]
def contract_ensures_update(return_value, texture, x, y) #

[View source]
def contract_post_update(check_depth, return_value, pixels : Pointer(UInt8), width, height, x_dest, y_dest, format : Format) #

[View source]
def contract_post_update(check_depth, return_value, pixels : Pointer(Float32), width, height, x_dest, y_dest, format : Format) #

[View source]
def contract_post_update(check_depth, return_value, texture, x, y) #

[View source]
def contract_pre_update(check_depth, pixels : Pointer(UInt8), width, height, x_dest, y_dest, format : Format) #

[View source]
def contract_pre_update(check_depth, pixels : Pointer(Float32), width, height, x_dest, y_dest, format : Format) #

[View source]
def contract_pre_update(check_depth, texture, x, y) #

[View source]
def contract_requires_update(pixels : Pointer(UInt8), width, height, x_dest, y_dest, format : Format) #

[View source]
def contract_requires_update(pixels : Pointer(Float32), width, height, x_dest, y_dest, format : Format) #

[View source]
def contract_requires_update(texture, x, y) #

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

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

[View source]
def create_internal(width, height, format) #

[View source]
def finalize #

[View source]
def format : Format #

[View source]
def identifier #

[View source]
def is_depth? : Bool #

[View source]
def is_repeating? : Bool #

[View source]
def is_smooth? : Bool #

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

[View source]
def size : Vector2u #

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

[View source]
def test_invariant_contracts(method = "") #

[View source]
def type : Type #

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

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

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

[View source]