<!-- clanlib header begin --> <HTML> <HEAD> <TITLE>CL_Texture::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>CL_Texture::CL_Texture</h1> <p> Construct a texture object.</p> <pre> CL_Texture(); CL_Texture( int target_gl); CL_Texture( int target_gl, CL_PixelBuffer& image, bool autogenerate_mipmaps = false, int border = 0, int format = 0); CL_Texture( int target_gl, int format, int width, int height = 1, int depth = 1, int border = 0, int level = 0); </pre> <p><b>Parameters:</b></p> <dl> <dt><i>target_gl</i></dt><dd>OpenGL texture target. Can be CL_TEXTURE_1D, CL_TEXTURE_2D, CL_TEXTURE_3D or CL_TEXTURE_CUBE_MAP.</dd> <dt><i>image</i></dt><dd>Initial image to upload as level-of-detail 0.</dd> <dt><i>autogenerate_mipmap</i></dt><dd>If true, enables mipmap autogeneration before uploading image.</dd> <dt><i>border</i></dt><dd>Border width of texture.</dd> <dt><i>format</i></dt><dd>Internal texture format of texture.</dd> </dl> <p><b>See also:</b></p> <p><a href="CL_Texture.html">CL_Texture</a> | <a href="CL_PixelBuffer.html">CL_PixelBuffer</a></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 -->