<!-- clanlib header begin --> <HTML> <HEAD> <TITLE>CL_OpenGLWindowDescription - 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_OpenGLWindowDescription</h1> <p> OpenGL specific display window description. <a href="#description">More...</a></p> <p>Derived from: <a href="CL_DisplayWindowDescription.html">CL_DisplayWindowDescription</a> <br> Derived by: <i>none</i> <br>Group: GL (Display 2D)</p> <p> #include <ClanLib/gl.h> <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_OpenGLWindowDescription__CL_OpenGLWindowDescription.html">CL_OpenGLWindowDescription</a></p></td><td valign=top><p> Constructs a window description with default values.</p></td></tr></table> <p><b>Attributes:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_OpenGLWindowDescription__get_rgba.html">get_rgba</a></p></td><td valign=top><p> Returns true if only TrueColor and DirectColor visuals are considered.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OpenGLWindowDescription__get_doublebuffer.html">get_doublebuffer</a></p></td><td valign=top><p> Returns true if only double-buffered visuals are considered.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OpenGLWindowDescription__get_stereo.html">get_stereo</a></p></td><td valign=top><p> Returns true if only stereo visuals are considered.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OpenGLWindowDescription__get_buffer_size.html">get_buffer_size</a></p></td><td valign=top><p> Returns the desired color index buffer size.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OpenGLWindowDescription__get_level.html">get_level</a></p></td><td valign=top><p> Returns the required buffer level.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OpenGLWindowDescription__get_aux_buffers.html">get_aux_buffers</a></p></td><td valign=top><p> Returns the desired number of auxilary buffers.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OpenGLWindowDescription__get_red_size.html">get_red_size</a></p></td><td valign=top><p> Returns the minimum required red buffer.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OpenGLWindowDescription__get_green_size.html">get_green_size</a></p></td><td valign=top><p> Returns the minimum required green buffer.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OpenGLWindowDescription__get_blue_size.html">get_blue_size</a></p></td><td valign=top><p> Returns the minimum required blue buffer.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OpenGLWindowDescription__get_alpha_size.html">get_alpha_size</a></p></td><td valign=top><p> Returns the minimum required alpha buffer.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OpenGLWindowDescription__get_depth_size.html">get_depth_size</a></p></td><td valign=top><p> Returns the minimum required depth buffer.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OpenGLWindowDescription__get_stencil_size.html">get_stencil_size</a></p></td><td valign=top><p> Returns the minimum required stencil buffer.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OpenGLWindowDescription__get_accum_red_size.html">get_accum_red_size</a></p></td><td valign=top><p> Returns the minimum required red accumulation buffer.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OpenGLWindowDescription__get_accum_green_size.html">get_accum_green_size</a></p></td><td valign=top><p> Returns the minimum required green accumulation buffer.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OpenGLWindowDescription__get_accum_blue_size.html">get_accum_blue_size</a></p></td><td valign=top><p> Returns the minimum required blue accumulation buffer.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OpenGLWindowDescription__get_accum_alpha_size.html">get_accum_alpha_size</a></p></td><td valign=top><p> Returns the minimum required alpha accumulation buffer.</p></td></tr></table> <p><b>Operations:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_OpenGLWindowDescription__set_rgba.html">set_rgba</a></p></td><td valign=top><p> Sets if only TrueColor and DirectColor visuals are considered.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OpenGLWindowDescription__set_doublebuffer.html">set_doublebuffer</a></p></td><td valign=top><p> Sets if only double-buffered visuals are considered.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OpenGLWindowDescription__set_stereo.html">set_stereo</a></p></td><td valign=top><p> Sets if only stereo visuals are to be considered.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OpenGLWindowDescription__set_buffer_size.html">set_buffer_size</a></p></td><td valign=top><p> Sets the desired color index buffer size.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OpenGLWindowDescription__set_level.html">set_level</a></p></td><td valign=top><p> Sets the required buffer level.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OpenGLWindowDescription__set_aux_buffers.html">set_aux_buffers</a></p></td><td valign=top><p> Sets the desired number of auxilary buffers.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OpenGLWindowDescription__set_red_size.html">set_red_size</a></p></td><td valign=top><p> Sets the minimum required red buffer.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OpenGLWindowDescription__set_green_size.html">set_green_size</a></p></td><td valign=top><p> Sets the minimum required green buffer.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OpenGLWindowDescription__set_blue_size.html">set_blue_size</a></p></td><td valign=top><p> Sets the minimum required blue buffer.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OpenGLWindowDescription__set_alpha_size.html">set_alpha_size</a></p></td><td valign=top><p> Sets the minimum required alpha buffer.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OpenGLWindowDescription__set_depth_size.html">set_depth_size</a></p></td><td valign=top><p> Sets the minimum required depth buffer.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OpenGLWindowDescription__set_stencil_size.html">set_stencil_size</a></p></td><td valign=top><p> Sets the minimum required stencil buffer.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OpenGLWindowDescription__set_accum_red_size.html">set_accum_red_size</a></p></td><td valign=top><p> Sets the minimum required red accumulation buffer.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OpenGLWindowDescription__set_accum_green_size.html">set_accum_green_size</a></p></td><td valign=top><p> Sets the minimum required green accumulation buffer.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OpenGLWindowDescription__set_accum_blue_size.html">set_accum_blue_size</a></p></td><td valign=top><p> Sets the minimum required blue accumulation buffer.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OpenGLWindowDescription__set_accum_alpha_size.html">set_accum_alpha_size</a></p></td><td valign=top><p> Sets the minimum required alpha accumulation buffer.</p></td></tr></table> <a name="#description"><p><b>Detailed description:</b></p> !group=GL/Display 2D! !header=gl.h! <p>Use this class to setup OpenGL specific settings for a top level window:</p> <pre> CL_OpenGLWindowDescription desc; dest.set_title("OpenGL window with stereo visual"); desc.set_stereo(true); desc.set_stencil_size(4); CL_DisplayWindow window(desc); </pre> <!-- 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 -->