Sophie

Sophie

distrib > Mageia > 1 > i586 > by-pkgid > c87dfbd6f7f653536d7b07ed7038c9d8 > files > 3641

clanlib0.8-docs-0.8.1-6.mga1.i586.rpm


<!-- clanlib header begin -->
<HTML>
<HEAD>
<TITLE>CL_Texture - ClanLib Game SDK</TITLE>
<STYLE TYPE="text/css"><!--
HTML BODY
{
	font-family: verdana, helvetica, sans-serif;
	font-size: 12px;
}
H1 { font-size: 22px; }
H2 { font-size: 18px; }
H3 { font-size: 16px; }
H4 { font-size: 14px; }
P { font-size: 12px; }
LI { font-size: 12px; }
--></STYLE>
</HEAD>

<body bgcolor=white text=black link=blue vlink=#800080>

<center>
<img src="http://clanlib.org/gfx/clanlib.png">
</center>
<!-- clanlib header end -->

<center>
<p>
<a href="http://clanlib.org/docs.html">Home</a> |
<a href="classes.html">All Classes</a> |
<a href="modules.html">Grouped Classes</a> |
<a href="index.html">Index</a> |
<a href="search.html">Search</a>
</p>
</center>
<h1>Class CL_Texture</h1>
<p>  OpenGL texture container. <a href="#description">More...</a></p>
<p>Derived from:
<i>none</i>
<br>
Derived by:
<i>none</i>
<br>Group: GL (Display 3D)</p>
<p>
#include &lt;ClanLib/gl.h&gt;
<p>
<table border=0 width=100%>
</table>
<p><b>Construction:</b></p>
<table border=0 width=100%>
<tr><td width=30% valign=top><p><a href="CL_Texture__CL_Texture.html">CL_Texture</a></p></td><td valign=top><p>  Construct a texture object.</p></td></tr></table>
<p><b>Attributes:</b></p>
<table border=0 width=100%>
<tr><td width=30% valign=top><p><a href="CL_Texture__get_handle.html">get_handle</a></p></td><td valign=top><p>  Returns the OpenGL texture handle.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__get_target_gl.html">get_target_gl</a></p></td><td valign=top><p>  Get the texture target as OpenGL constant.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__get_format_gl.html">get_format_gl</a></p></td><td valign=top><p>  Get the internal texture format as OpenGL constant.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__get_width.html">get_width</a></p></td><td valign=top><p>  Get the texture width.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__get_height.html">get_height</a></p></td><td valign=top><p>  Get the texture height.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__get_depth.html">get_depth</a></p></td><td valign=top><p>  Get the texture depth.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__get_border.html">get_border</a></p></td><td valign=top><p>  Get the texture border size.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__get_pixeldata.html">get_pixeldata</a></p></td><td valign=top><p>  Retrieve image data from texture.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__get_min_lod.html">get_min_lod</a></p></td><td valign=top><p>  Get the minimum level of detail.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__get_max_lod.html">get_max_lod</a></p></td><td valign=top><p>  Get the maximum level of detail.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__get_lod_bias.html">get_lod_bias</a></p></td><td valign=top><p>  Get the level of detail bias constant.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__get_base_level.html">get_base_level</a></p></td><td valign=top><p>  Get the texture base level.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__get_max_level.html">get_max_level</a></p></td><td valign=top><p>  Get the texture max level.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__get_generate_mipmap.html">get_generate_mipmap</a></p></td><td valign=top><p>  Get if automatic mipmap generation is enabled.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__get_wrap_mode_s.html">get_wrap_mode_s</a></p></td><td valign=top><p>  Get the texture wrap mode for the s coordinate.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__get_wrap_mode_s_gl.html">get_wrap_mode_s_gl</a></p></td><td valign=top><p>  Get the texture wrap mode for the s coordinate as OpenGL constant.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__get_wrap_mode_t.html">get_wrap_mode_t</a></p></td><td valign=top><p>  Get the texture wrap mode for the t coordinate.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__get_wrap_mode_t_gl.html">get_wrap_mode_t_gl</a></p></td><td valign=top><p>  Get the texture wrap mode for the t coordinate as OpenGL constant.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__get_wrap_mode_r.html">get_wrap_mode_r</a></p></td><td valign=top><p>  Get the texture wrap mode for the r coordinate.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__get_wrap_mode_r_gl.html">get_wrap_mode_r_gl</a></p></td><td valign=top><p>  Get the texture wrap mode for the r coordinate as OpenGL constant.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__get_min_filter.html">get_min_filter</a></p></td><td valign=top><p>  Get the texture minification filter.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__get_min_filter_gl.html">get_min_filter_gl</a></p></td><td valign=top><p>  Get the texture minification filter as OpenGL constant.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__get_mag_filter.html">get_mag_filter</a></p></td><td valign=top><p>  Get the texture magnification filter.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__get_mag_filter_gl.html">get_mag_filter_gl</a></p></td><td valign=top><p>  Get the texture magnification filter as OpenGL constant.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__get_border_color.html">get_border_color</a></p></td><td valign=top><p>  Get the texture border color.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__get_priority.html">get_priority</a></p></td><td valign=top><p>  Get the texture priority.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__is_resident.html">is_resident</a></p></td><td valign=top><p>  Returns true if texture is resident in texture memory.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__get_depth_mode.html">get_depth_mode</a></p></td><td valign=top><p>  Get the texture depth mode.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__get_depth_mode_gl.html">get_depth_mode_gl</a></p></td><td valign=top><p>  Get the texture depth mode as OpenGL constant.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__get_compare_mode.html">get_compare_mode</a></p></td><td valign=top><p>  Get the texture compare mode.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__get_compare_mode_gl.html">get_compare_mode_gl</a></p></td><td valign=top><p>  Get the texture compare mode as OpenGL constant.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__get_compare_function.html">get_compare_function</a></p></td><td valign=top><p>  Get the texture compare function.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__get_compare_function_gl.html">get_compare_function_gl</a></p></td><td valign=top><p>  Get the texture compare function as OpenGL constant.</p></td></tr></table>
<p><b>Operations:</b></p>
<table border=0 width=100%>
<tr><td width=30% valign=top><p><a href="CL_Texture__bind.html">bind</a></p></td><td valign=top><p>  Bind texture on current active CL_OpenGLState.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__set_size.html">set_size</a></p></td><td valign=top><p>  Set texture size, without uploading any image data.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__set_image.html">set_image</a></p></td><td valign=top><p>  Upload image to texture.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__set_cube_map.html">set_cube_map</a></p></td><td valign=top><p>  Upload cube map.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__set_image3d_gl.html">set_image3d_gl</a></p></td><td valign=top><p>  Upload 3D image to texture with OpenGL constants.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__set_image2d_gl.html">set_image2d_gl</a></p></td><td valign=top><p>  Upload 2D image to texture with OpenGL constants.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__set_image1d_gl.html">set_image1d_gl</a></p></td><td valign=top><p>  Upload 1D image to texture with OpenGL constants.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__set_subimage.html">set_subimage</a></p></td><td valign=top><p>  Upload image to sub texture.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__set_subimage3d_gl.html">set_subimage3d_gl</a></p></td><td valign=top><p>  Upload 3D sub image to texture with OpenGL constants.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__set_subimage2d_gl.html">set_subimage2d_gl</a></p></td><td valign=top><p>  Upload 2D sub image to texture with OpenGL constants.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__set_subimage1d_gl.html">set_subimage1d_gl</a></p></td><td valign=top><p>  Upload 1D sub image to texture with OpenGL constants.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__copy_image.html">copy_image</a></p></td><td valign=top><p>  Copy image data from a graphic context.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__copy_image2d_gl.html">copy_image2d_gl</a></p></td><td valign=top><p>  Copy 2D image data from a graphic context with OpenGL constants.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__copy_image1d_gl.html">copy_image1d_gl</a></p></td><td valign=top><p>  Copy 1D image data from a graphic context with OpenGL constants.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__copy_subimage.html">copy_subimage</a></p></td><td valign=top><p>  Copy sub image data from a graphic context.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__copy_subimage3d_gl.html">copy_subimage3d_gl</a></p></td><td valign=top><p>  Copy 3D sub image data from a graphic context with OpenGL constants.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__copy_subimage2d_gl.html">copy_subimage2d_gl</a></p></td><td valign=top><p>  Copy 2D sub image data from a graphic context with OpenGL constants.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__copy_subimage1d_gl.html">copy_subimage1d_gl</a></p></td><td valign=top><p>  Copy 1D sub image data from a graphic context with OpenGL constants.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__set_min_lod.html">set_min_lod</a></p></td><td valign=top><p>  Set the minimum level of detail texture parameter.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__set_max_lod.html">set_max_lod</a></p></td><td valign=top><p>  Set the maximum level of detail texture parameter.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__set_lod_bias.html">set_lod_bias</a></p></td><td valign=top><p>  Sets the level of detail bias constant.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__set_base_level.html">set_base_level</a></p></td><td valign=top><p>  Sets the texture base level texture parameter.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__set_max_level.html">set_max_level</a></p></td><td valign=top><p>  Sets the texture max level texture parameter.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__set_generate_mipmap.html">set_generate_mipmap</a></p></td><td valign=top><p>  Enables or disables automatic mipmap generation when uploading image data.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__set_wrap_mode.html">set_wrap_mode</a></p></td><td valign=top><p>  Set the texture wrapping mode.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__set_wrap_mode_gl.html">set_wrap_mode_gl</a></p></td><td valign=top><p>  Set the texture wrapping mode with OpenGL constants.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__set_min_filter.html">set_min_filter</a></p></td><td valign=top><p>  Set the minification filter.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__set_min_filter_gl.html">set_min_filter_gl</a></p></td><td valign=top><p>  Set the minification filter with an OpenGL constant.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__set_mag_filter.html">set_mag_filter</a></p></td><td valign=top><p>  Set the magnification filter.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__set_mag_filter_gl.html">set_mag_filter_gl</a></p></td><td valign=top><p>  Set the magnification filter with an OpenGL constant.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__set_border_color.html">set_border_color</a></p></td><td valign=top><p>  Set texture border color.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__set_priority.html">set_priority</a></p></td><td valign=top><p>  Set texture priority.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__set_depth_mode.html">set_depth_mode</a></p></td><td valign=top><p>  Set the depth texture mode parameter.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__set_depth_mode_gl.html">set_depth_mode_gl</a></p></td><td valign=top><p>  Set the depth texture mode with an OpenGL constant.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__set_texture_compare.html">set_texture_compare</a></p></td><td valign=top><p>  Sets the texture compare mode and compare function texture parameters.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__set_texture_compare_gl.html">set_texture_compare_gl</a></p></td><td valign=top><p>  Sets the texture compare mode and function with an OpenGL constant.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__wrap_mode_to_gl.html">wrap_mode_to_gl</a></p></td><td valign=top><p>  Returns wrap mode as OpenGL constant.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__gl_to_wrap_mode.html">gl_to_wrap_mode</a></p></td><td valign=top><p>  Returns OpenGL constant as wrap mode.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__filter_to_gl.html">filter_to_gl</a></p></td><td valign=top><p>  Converts CL_TextureFilter enum to OpenGL constant.	</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__gl_to_filter.html">gl_to_filter</a></p></td><td valign=top><p>  Converts OpenGL constant to CL_Texturefilter enum.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__depth_mode_to_gl.html">depth_mode_to_gl</a></p></td><td valign=top><p>  Converts CL_TextureDepthMode enum to OpenGL constant.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__gl_to_depth_mode.html">gl_to_depth_mode</a></p></td><td valign=top><p>  Converts OpenGL constant to CL_TextureDepthMode enum.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__compare_mode_to_gl.html">compare_mode_to_gl</a></p></td><td valign=top><p>  Converts CL_TextureCompareMode enum to OpenGL constant.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__gl_to_compare_mode.html">gl_to_compare_mode</a></p></td><td valign=top><p>  Converts OpenGL constant to CL_TextureCompareMode enum.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__compare_function_to_gl.html">compare_function_to_gl</a></p></td><td valign=top><p>  Converts CL_TextureCompareFunction to OpenGL constant.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Texture__gl_to_compare_function.html">gl_to_compare_function</a></p></td><td valign=top><p>  Converts OpenGL constant to CL_TextureCompareFunction.</p></td></tr></table>
<a name="#description"><p><b>Detailed description:</b></p>
  <p>This class is ClanLib's C++ interface to an OpenGL texture.</p>


<!-- clanlib footer begin -->

<center><br><br><font color="#a0a0a0">
Questions or comments, write to the <a href="http://clanlib.org/contact.html">ClanLib mailing list</a>.
</font></center>

</body>
</html>
<!-- clanlib footer end -->