Home |All Classes |Grouped Classes |Index |Search

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 texture.


Attributes:

is_null

Returns true if this is a null texture.

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_generate_mipmap

Get if automatic mipmap generation is enabled.

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_depth_mode

Get the texture depth mode.

get_compare_mode

Get the texture compare mode.

get_compare_function

Get the texture compare function.

get_provider


Operations:

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_generate_mipmap

Enables or disables automatic mipmap generation when uploading image data.

set_wrap_mode

Set the texture wrapping mode.

set_min_filter

Set the minification filter.

set_mag_filter

Set the magnification filter.

set_depth_mode

Set the depth texture mode parameter.

set_texture_compare

Sets the texture compare mode and compare function texture parameters.