Home | All Classes | Grouped Classes | Index | Search

# Class CL_OpenGLWindowDescription

OpenGL specific display window description. More...

Derived from: CL_DisplayWindowDescription
Derived by: none
Group: GL (Display 2D)

#include <ClanLib/gl.h>

Construction:

CL_OpenGLWindowDescription | Constructs a window description with default values.

Attributes:

get_rgba | Returns true if only TrueColor and DirectColor visuals are considered.
get_doublebuffer | Returns true if only double-buffered visuals are considered.
get_stereo | Returns true if only stereo visuals are considered.
get_buffer_size | Returns the desired color index buffer size.
get_level | Returns the required buffer level.
get_aux_buffers | Returns the desired number of auxilary buffers.
get_red_size | Returns the minimum required red buffer.
get_green_size | Returns the minimum required green buffer.
get_blue_size | Returns the minimum required blue buffer.
get_alpha_size | Returns the minimum required alpha buffer.
get_depth_size | Returns the minimum required depth buffer.
get_stencil_size | Returns the minimum required stencil buffer.
get_accum_red_size | Returns the minimum required red accumulation buffer.
get_accum_green_size | Returns the minimum required green accumulation buffer.
get_accum_blue_size | Returns the minimum required blue accumulation buffer.
get_accum_alpha_size | Returns the minimum required alpha accumulation buffer.

Operations:

set_rgba | Sets if only TrueColor and DirectColor visuals are considered.
set_doublebuffer | Sets if only double-buffered visuals are considered.
set_stereo | Sets if only stereo visuals are to be considered.
set_buffer_size | Sets the desired color index buffer size.
set_level | Sets the required buffer level.
set_aux_buffers | Sets the desired number of auxilary buffers.
set_red_size | Sets the minimum required red buffer.
set_green_size | Sets the minimum required green buffer.
set_blue_size | Sets the minimum required blue buffer.
set_alpha_size | Sets the minimum required alpha buffer.
set_depth_size | Sets the minimum required depth buffer.
set_stencil_size | Sets the minimum required stencil buffer.
set_accum_red_size | Sets the minimum required red accumulation buffer.
set_accum_green_size | Sets the minimum required green accumulation buffer.
set_accum_blue_size | Sets the minimum required blue accumulation buffer.
set_accum_alpha_size | Sets the minimum required alpha accumulation buffer.

Detailed description:

!group=GL/Display 2D! !header=gl.h!

Use this class to setup OpenGL specific settings for a top level window:

      CL_OpenGLWindowDescription desc;
      dest.set_title("OpenGL window with stereo visual");
      desc.set_stereo(true);
      desc.set_stencil_size(4);
      CL_DisplayWindow window(desc);

Questions or comments, write to the ClanLib mailing list.