All Classes |Grouped Classes |Index

Class CL_Texture

Texture object class. More...

Derived from:

None

Derived by:

None

Group:

Display (Display)

#include <ClanLib/display.h>

Class Members:

Construction:

CL_Texture

Constructs a null instance.


Operators:

operator==

Equality operator.

operator!=

Inequality operator.

operator<

Less than operator.


Attributes:

is_null

Returns true if this object is invalid.

throw_if_null

Throw an exception if this object is invalid.

get_width

Get the texture width.

get_height

Get the texture height.

get_size

Get the texture size.

get_depth

Get the texture depth.

get_pixeldata

Retrieve image data from texture.

get_min_lod

Get the minimum level of detail.

get_max_lod

Get the maximum level of detail.

get_lod_bias

Get the level of detail bias constant.

get_base_level

Get the texture base level.

get_max_level

Get the texture max level.

get_wrap_mode_s

Get the texture wrap mode for the s coordinate.

get_wrap_mode_t

Get the texture wrap mode for the t coordinate.

get_wrap_mode_r

Get the texture wrap mode for the r coordinate.

get_min_filter

Get the texture minification filter.

get_mag_filter

Get the texture magnification filter.

is_resident

Returns true if texture is resident in texture memory.

get_compare_mode

Get the texture compare mode.

get_compare_function

Get the texture compare function.

get_provider

Get Provider.

get_impl

Get the implementation weakptr.


Operations:

generate_mipmap

Generate the mipmap.

set_image

Upload image to texture.

set_cube_map

Upload cube map.

set_compressed_image

set_subimage

Upload image to sub texture.

copy_image_from

Copy image data from a graphic context.

copy_subimage_from

Copy sub image data from a graphic context.

set_min_lod

Set the minimum level of detail texture parameter.

set_max_lod

Set the maximum level of detail texture parameter.

set_lod_bias

Sets the level of detail bias constant.

set_base_level

Sets the texture base level texture parameter.

set_max_level

Sets the texture max level texture parameter.

set_wrap_mode

Set the texture wrapping mode.

set_min_filter

Set the minification filter.

set_mag_filter

Set the magnification filter.

set_max_anisotropy

Set the maximum degree of anisotropy.

set_texture_compare

Sets the texture compare mode and compare function texture parameters.