<!-- clanlib header begin --> <HTML> <HEAD> <TITLE>CL_PixelFormat::CL_PixelFormat - 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_PixelFormat::CL_PixelFormat</h1> <p> Constructs a pixel format description.</p> <pre> CL_PixelFormat(); CL_PixelFormat( const CL_PixelFormat& copy); CL_PixelFormat( int depth, unsigned int red_mask, unsigned int green_mask, unsigned int blue_mask, unsigned int alpha_mask = 0, bool use_colorkey = false, unsigned int colorkey = 0, CL_PixelFormatType type = pixelformat_rgba); </pre> <p><b>Parameters:</b></p> <dl> <dt><i>depth</i></dt><dd>Bits per pixel.</dd> <dt><i>red_mask</i></dt><dd>Red color mask.</dd> <dt><i>green_mask</i></dt><dd>Green color mask.</dd> <dt><i>blue_mask</i></dt><dd>Blue color mask.</dd> <dt><i>alpha_mask</i></dt><dd>Alpha transparency mask.</dd> <dt><i>use_colorkey</i></dt><dd>True if source color key transparency is used (single color transparency).</dd> <dt><i>colorkey</i></dt><dd>Source color key (pixel value that means transparent).</dd> </dl> <p><b>See also:</b></p> <p><a href="CL_PixelFormat.html">CL_PixelFormat</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 -->