Accelerated OpenGL functions for X11. More...
#include <vgui_accelerate_x11.h>
Public Member Functions | |
vgui_accelerate_x11 () | |
virtual | ~vgui_accelerate_x11 () |
virtual bool | vgui_glDrawPixels (GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels) |
Fast-as-we-can version of drawpixels. | |
virtual bool | vgui_glClear (GLbitfield mask) |
OpenGL clearing. | |
virtual bool | vgui_choose_cache_format (GLenum *format, GLenum *type) |
Set the OpenGL cache format. | |
virtual bool | vgui_copy_aux_to_back () |
For X11/Mesa - copy auxiliary buffer to back buffer. | |
virtual bool | vgui_copy_back_to_aux () |
For X11/Mesa - copy back buffer to auxiliary buffer. | |
Static Public Member Functions | |
static vgui_accelerate * | instance () |
Singleton instance of this class. | |
static void | register_accelerator (vgui_accelerate *p, int level) |
If level is higher than current level, then change to given accelerator. | |
Static Public Attributes | |
static bool | vgui_no_acceleration = false |
Set to true for no acceleration. | |
static bool | vgui_mfc_acceleration = false |
Set to true to use MFC acceleration. | |
static bool | vgui_doublebuffer = true |
Sometimes double buffering needs to be switched off on windows. | |
Protected Attributes | |
char * | aux_buffer |
int | aux_buffer_size |
Accelerated OpenGL functions for X11.
Definition at line 24 of file vgui_accelerate_x11.h.
vgui_accelerate_x11::vgui_accelerate_x11 | ( | ) |
virtual vgui_accelerate_x11::~vgui_accelerate_x11 | ( | ) | [virtual] |
vgui_accelerate * vgui_accelerate::instance | ( | ) | [static, inherited] |
Singleton instance of this class.
Definition at line 26 of file vgui_accelerate.cxx.
void vgui_accelerate::register_accelerator | ( | vgui_accelerate * | p, |
int | level | ||
) | [static, inherited] |
If level is higher than current level, then change to given accelerator.
Definition at line 32 of file vgui_accelerate.cxx.
virtual bool vgui_accelerate_x11::vgui_choose_cache_format | ( | GLenum * | format, |
GLenum * | type | ||
) | [virtual] |
Set the OpenGL cache format.
If you pass stuff to vgui_glDrawPixels, and the format and type are what you got from an earlier call to this baby, then it might go faster.
Reimplemented from vgui_accelerate.
virtual bool vgui_accelerate_x11::vgui_copy_aux_to_back | ( | ) | [virtual] |
For X11/Mesa - copy auxiliary buffer to back buffer.
This function is used in X11/Mesa to speed up overlay emulation. It returns false to indicate to overlay_biscuit that a default emulation must be used.
Reimplemented from vgui_accelerate.
virtual bool vgui_accelerate_x11::vgui_copy_back_to_aux | ( | ) | [virtual] |
For X11/Mesa - copy back buffer to auxiliary buffer.
This function is used in X11/Mesa to speed up overlay emulation. It returns false to indicate to overlay_biscuit that a default emulation must be used.
Reimplemented from vgui_accelerate.
virtual bool vgui_accelerate_x11::vgui_glClear | ( | GLbitfield | mask | ) | [virtual] |
OpenGL clearing.
Reimplemented from vgui_accelerate.
virtual bool vgui_accelerate_x11::vgui_glDrawPixels | ( | GLsizei | width, |
GLsizei | height, | ||
GLenum | format, | ||
GLenum | type, | ||
const GLvoid * | pixels | ||
) | [virtual] |
Fast-as-we-can version of drawpixels.
Reimplemented from vgui_accelerate.
char* vgui_accelerate_x11::aux_buffer [protected] |
Definition at line 36 of file vgui_accelerate_x11.h.
int vgui_accelerate_x11::aux_buffer_size [protected] |
Definition at line 37 of file vgui_accelerate_x11.h.
bool vgui_accelerate::vgui_doublebuffer = true [static, inherited] |
Sometimes double buffering needs to be switched off on windows.
Definition at line 34 of file vgui_accelerate.h.
bool vgui_accelerate::vgui_mfc_acceleration = false [static, inherited] |
Set to true to use MFC acceleration.
Definition at line 31 of file vgui_accelerate.h.
bool vgui_accelerate::vgui_no_acceleration = false [static, inherited] |
Set to true for no acceleration.
Definition at line 28 of file vgui_accelerate.h.