class Boleite::Private::OpenGLTexture
- Boleite::Private::OpenGLTexture
- Boleite::Texture
- Reference
- Object
Included Modules
- CrystalClear
Defined in:
boleite/backend/graphics/opengl_texture.crConstructors
Class Method Summary
- .maximum_size : UInt32
- .translate_external_format(format)
- .translate_format(format, type)
- .translate_unpack_alignment(format)
Instance Method Summary
- #activate(&)
- #activate
- #bind
- #contract_ensures_update(return_value, pixels : Pointer(UInt8), width, height, x_dest, y_dest, format : Format)
- #contract_ensures_update(return_value, pixels : Pointer(Float32), width, height, x_dest, y_dest, format : Format)
- #contract_ensures_update(return_value, texture, x, y)
- #contract_post_update(check_depth, return_value, pixels : Pointer(UInt8), width, height, x_dest, y_dest, format : Format)
- #contract_post_update(check_depth, return_value, pixels : Pointer(Float32), width, height, x_dest, y_dest, format : Format)
- #contract_post_update(check_depth, return_value, texture, x, y)
- #contract_pre_update(check_depth, pixels : Pointer(UInt8), width, height, x_dest, y_dest, format : Format)
- #contract_pre_update(check_depth, pixels : Pointer(Float32), width, height, x_dest, y_dest, format : Format)
- #contract_pre_update(check_depth, texture, x, y)
- #contract_requires_update(pixels : Pointer(UInt8), width, height, x_dest, y_dest, format : Format)
- #contract_requires_update(pixels : Pointer(Float32), width, height, x_dest, y_dest, format : Format)
- #contract_requires_update(texture, x, y)
- #create(width : UInt32, height : UInt32, format : Format, type : Type) : Void
- #create_depth(width : UInt32, height : UInt32) : Void
- #create_internal(width, height, format)
- #finalize
- #format : Format
- #identifier
- #is_depth? : Bool
- #is_repeating? : Bool
- #is_smooth? : Bool
- #repeating=(val : Bool) : Bool
- #size : Vector2u
- #smooth=(val : Bool) : Bool
- #test_invariant_contracts(method = "")
- #type : Type
- #update(pixels : Pointer(UInt8), width, height, x_dest, y_dest, format : Format) : Void
- #update(pixels : Pointer(Float32), width, height, x_dest, y_dest, format : Format) : Void
- #update(texture, x, y) : Void
Macro 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) : Voidupdate(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
Class Method Detail
Instance Method Detail
def contract_ensures_update(return_value, pixels : Pointer(UInt8), width, height, x_dest, y_dest, format : Format)
#
def contract_ensures_update(return_value, pixels : Pointer(Float32), width, height, x_dest, y_dest, format : Format)
#
def contract_post_update(check_depth, return_value, pixels : Pointer(UInt8), width, height, x_dest, y_dest, format : Format)
#
def contract_post_update(check_depth, return_value, pixels : Pointer(Float32), width, height, x_dest, y_dest, format : Format)
#
def contract_pre_update(check_depth, pixels : Pointer(UInt8), width, height, x_dest, y_dest, format : Format)
#
def contract_pre_update(check_depth, pixels : Pointer(Float32), width, height, x_dest, y_dest, format : Format)
#
def contract_requires_update(pixels : Pointer(UInt8), width, height, x_dest, y_dest, format : Format)
#
def contract_requires_update(pixels : Pointer(Float32), width, height, x_dest, y_dest, format : Format)
#