Home | All Classes | Grouped Classes | Index | Search

# Class CL_Texture

OpenGL texture container. More...

Derived from: none
Derived by: none
Group: GL (Display 3D)

#include <ClanLib/gl.h>

Construction:

CL_Texture | Construct a texture object.

Attributes:

get_handle | Returns the OpenGL texture handle.
get_target_gl | Get the texture target as OpenGL constant.
get_format_gl | Get the internal texture format as OpenGL constant.
get_width | Get the texture width.
get_height | Get the texture height.
get_depth | Get the texture depth.
get_border | Get the texture border size.
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_s_gl | Get the texture wrap mode for the s coordinate as OpenGL constant.
get_wrap_mode_t | Get the texture wrap mode for the t coordinate.
get_wrap_mode_t_gl | Get the texture wrap mode for the t coordinate as OpenGL constant.
get_wrap_mode_r | Get the texture wrap mode for the r coordinate.
get_wrap_mode_r_gl | Get the texture wrap mode for the r coordinate as OpenGL constant.
get_min_filter | Get the texture minification filter.
get_min_filter_gl | Get the texture minification filter as OpenGL constant.
get_mag_filter | Get the texture magnification filter.
get_mag_filter_gl | Get the texture magnification filter as OpenGL constant.
get_border_color | Get the texture border color.
get_priority | Get the texture priority.
is_resident | Returns true if texture is resident in texture memory.
get_depth_mode | Get the texture depth mode.
get_depth_mode_gl | Get the texture depth mode as OpenGL constant.
get_compare_mode | Get the texture compare mode.
get_compare_mode_gl | Get the texture compare mode as OpenGL constant.
get_compare_function | Get the texture compare function.
get_compare_function_gl | Get the texture compare function as OpenGL constant.

Operations:

bind | Bind texture on current active CL_OpenGLState.
set_size | Set texture size, without uploading any image data.
set_image | Upload image to texture.
set_cube_map | Upload cube map.
set_image3d_gl | Upload 3D image to texture with OpenGL constants.
set_image2d_gl | Upload 2D image to texture with OpenGL constants.
set_image1d_gl | Upload 1D image to texture with OpenGL constants.
set_subimage | Upload image to sub texture.
set_subimage3d_gl | Upload 3D sub image to texture with OpenGL constants.
set_subimage2d_gl | Upload 2D sub image to texture with OpenGL constants.
set_subimage1d_gl | Upload 1D sub image to texture with OpenGL constants.
copy_image | Copy image data from a graphic context.
copy_image2d_gl | Copy 2D image data from a graphic context with OpenGL constants.
copy_image1d_gl | Copy 1D image data from a graphic context with OpenGL constants.
copy_subimage | Copy sub image data from a graphic context.
copy_subimage3d_gl | Copy 3D sub image data from a graphic context with OpenGL constants.
copy_subimage2d_gl | Copy 2D sub image data from a graphic context with OpenGL constants.
copy_subimage1d_gl | Copy 1D sub image data from a graphic context with OpenGL constants.
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_wrap_mode_gl | Set the texture wrapping mode with OpenGL constants.
set_min_filter | Set the minification filter.
set_min_filter_gl | Set the minification filter with an OpenGL constant.
set_mag_filter | Set the magnification filter.
set_mag_filter_gl | Set the magnification filter with an OpenGL constant.
set_border_color | Set texture border color.
set_priority | Set texture priority.
set_depth_mode | Set the depth texture mode parameter.
set_depth_mode_gl | Set the depth texture mode with an OpenGL constant.
set_texture_compare | Sets the texture compare mode and compare function texture parameters.
set_texture_compare_gl | Sets the texture compare mode and function with an OpenGL constant.
wrap_mode_to_gl | Returns wrap mode as OpenGL constant.
gl_to_wrap_mode | Returns OpenGL constant as wrap mode.
filter_to_gl | Converts CL_TextureFilter enum to OpenGL constant.
gl_to_filter | Converts OpenGL constant to CL_Texturefilter enum.
depth_mode_to_gl | Converts CL_TextureDepthMode enum to OpenGL constant.
gl_to_depth_mode | Converts OpenGL constant to CL_TextureDepthMode enum.
compare_mode_to_gl | Converts CL_TextureCompareMode enum to OpenGL constant.
gl_to_compare_mode | Converts OpenGL constant to CL_TextureCompareMode enum.
compare_function_to_gl | Converts CL_TextureCompareFunction to OpenGL constant.
gl_to_compare_function | Converts OpenGL constant to CL_TextureCompareFunction.

Detailed description:

This class is ClanLib's C++ interface to an OpenGL texture.

Questions or comments, write to the ClanLib mailing list.