Entire Class Index | Main Class Index | Cross Index | Global Index

# Class CL_OpenGL

OpenGL "main" class.
Contained in: global
Derived from: none
Derived by: none
Group: GL (OpenGL)

#include <ClanLib/gl.h>

### public function member index:

### Operations:

``static` `void`` | `begin_2d` | `()`;
``static` `void`` | `end_2d` | `()`;
``static` `void`` | `enable_2d_projection` | `()`;
``static` `void`` | `disable_2d_projection` | `()`;
``static` `void`` | `set_use_gl` | `(`int` `v`)`;
``static` `void`` | `set_buffer_size` | `(`int` `v`)`;
``static` `void`` | `set_level` | `(`int` `v`)`;
``static` `void`` | `set_rgba` | `(`int` `v`)`;
``static` `void`` | `set_doublebuffer` | `(`int` `v`)`;
``static` `void`` | `set_stereo` | `(`int` `v`)`;
``static` `void`` | `set_aux_buffers` | `(`int` `v`)`;
``static` `void`` | `set_red_size` | `(`int` `v`)`;
``static` `void`` | `set_green_size` | `(`int` `v`)`;
``static` `void`` | `set_blue_size` | `(`int` `v`)`;
``static` `void`` | `set_alpha_size` | `(`int` `v`)`;
``static` `void`` | `set_depth_size` | `(`int` `v`)`;
``static` `void`` | `set_stencil_size` | `(`int` `v`)`;
``static` `void`` | `set_accum_red_size` | `(`int` `v`)`;
``static` `void`` | `set_accum_green_size` | `(`int` `v`)`;
``static` `void`` | `set_accum_blue_size` | `(`int` `v`)`;
``static` `void`` | `set_accum_alpha_size` | `(`int` `v`)`;
``static` `CL_ProcAddress`*` | `get_proc_address` | `(`const` `std::string`& `function_name`)`;

## Description:

CL_OpenGL is a class containing some functions that are general for both OpenGL and ClanLib.

## Function Member Descriptions:

CL_OpenGL::begin_2d - Begin 2d
``static` `void`` `begin_2d` `()`;

> You can use standard ClanLib 2D graphics display code while using OpenGL.
> ClanLib will save and restore the state before and after each call.
> If you plan to call alot of 2D drawing code, call begin_2d(), do the drawing,
> then call end_2d(). This greatly reduces the overhead per call of 2D code.

CL_OpenGL::disable_2d_projection - Disable 2d projection
``static` `void`` `disable_2d_projection` `()`;

CL_OpenGL::enable_2d_projection - Enable 2d projection
``static` `void`` `enable_2d_projection` `()`;

CL_OpenGL::end_2d - End 2d
``static` `void`` `end_2d` `()`;

> Ends the current 2D session started by begin_2d()

CL_OpenGL::get_proc_address - Get OpenGL extension specific function address.
``static` `CL_ProcAddress`*` `get_proc_address` `(`const` `std::string`& `function_name`)`;

CL_OpenGL::set_accum_alpha_size - Set accum alpha size
``static` `void`` `set_accum_alpha_size` `(`int` `v`)`;

CL_OpenGL::set_accum_blue_size - Set accum blue size
``static` `void`` `set_accum_blue_size` `(`int` `v`)`;

CL_OpenGL::set_accum_green_size - Set accum green size
``static` `void`` `set_accum_green_size` `(`int` `v`)`;

CL_OpenGL::set_accum_red_size - Set accum red size
``static` `void`` `set_accum_red_size` `(`int` `v`)`;

CL_OpenGL::set_alpha_size - Set alpha size
``static` `void`` `set_alpha_size` `(`int` `v`)`;

CL_OpenGL::set_aux_buffers - Set aux buffers
``static` `void`` `set_aux_buffers` `(`int` `v`)`;

CL_OpenGL::set_blue_size - Set blue size
``static` `void`` `set_blue_size` `(`int` `v`)`;

CL_OpenGL::set_buffer_size - Set buffer size
``static` `void`` `set_buffer_size` `(`int` `v`)`;

CL_OpenGL::set_depth_size - Set depth size
``static` `void`` `set_depth_size` `(`int` `v`)`;

CL_OpenGL::set_doublebuffer - Set doublebuffer
``static` `void`` `set_doublebuffer` `(`int` `v`)`;

CL_OpenGL::set_green_size - Set green size
``static` `void`` `set_green_size` `(`int` `v`)`;

CL_OpenGL::set_level - Set level
``static` `void`` `set_level` `(`int` `v`)`;

CL_OpenGL::set_red_size - Set red size
``static` `void`` `set_red_size` `(`int` `v`)`;

CL_OpenGL::set_rgba - Set rgba
``static` `void`` `set_rgba` `(`int` `v`)`;

CL_OpenGL::set_stencil_size - Set stencil size
``static` `void`` `set_stencil_size` `(`int` `v`)`;

CL_OpenGL::set_stereo - Set stereo
``static` `void`` `set_stereo` `(`int` `v`)`;

CL_OpenGL::set_use_gl - Set use gl
``static` `void`` `set_use_gl` `(`int` `v`)`;