![]() | |
![]() | ![]() |
Entire Class Index | Main Class Index | Cross Index | Global Index |
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); |
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.
Ends the current 2D session started by begin_2d()