#include <vuDrawTools.h>
Static Public Member Functions | |
void | setDC (void *pDC) |
attach a draw context */ | |
void | quitDC () |
finish drawing actions for current device context | |
void | setColour (byte r, byte g, byte b) |
set the current drawing colour | |
void | setBGColour (byte r, byte g, byte b) |
set the current background colour (for clearBG) | |
void | setPixel (int x, int y) |
set a Pixel with the current drawing colour | |
void | blit (const byte *buf, int sx, int sy, int px, int py) |
blit the framebuffer to the screen | |
void | blit2 (const byte *buf, int sx, int sy, int px, int py) |
void | partblit (const byte *buf, int sx, int sy, int length) |
void | finishpartblit () |
void | setImgWidthHeight (int sx, int sy) |
unsigned char * | getData () |
void | clearBG () |
clear the entire drawing area | |
void | clearBGWithoutRect (int ox, int oy, int sx, int sy) |
some try to optimize the clearBG |
This class has been created to provide access to the bit blit operations of the GUI. This is necessairy because OpenGLs glWritePixels is incredibly slow on PCs.
As an alternative to the glSwapBuffers() command it is desirable to maintain a frame buffer for an active window. This could avoid complete rerendering on simple frame redrawing. The Blit function has to be wrapped to display off-screen renderings. This will also be useful to maintaind a second frame buffer for fast screen refresh.
Definition at line 46 of file vuDrawTools.h.
|
blit the framebuffer to the screen As mentioned above. This function needs to be improved. Perhaps we do not allow an external framebuffer but instead give a handle to an internal one. Definition at line 83 of file vuDrawTools.cpp. |
|
Definition at line 97 of file vuDrawTools.cpp. |
|
clear the entire drawing area
Definition at line 66 of file vuDrawTools.cpp. References cDC. |
|
some try to optimize the clearBG ...but doesn't work and will be obsolete with an improved version of vuDrawTools Definition at line 173 of file vuDrawTools.cpp. References cDC. |
|
Definition at line 115 of file vuDrawTools.cpp. |
|
Definition at line 140 of file vuDrawTools.cpp. References img. |
|
Definition at line 110 of file vuDrawTools.cpp. References byte. |
|
finish drawing actions for current device context
Definition at line 163 of file vuDrawTools.cpp. References cDC. |
|
set the current background colour (for clearBG)
Definition at line 52 of file vuDrawTools.cpp. |
|
set the current drawing colour
Definition at line 37 of file vuDrawTools.cpp. |
|
attach a draw context */
Definition at line 149 of file vuDrawTools.cpp. References cDC. |
|
Definition at line 120 of file vuDrawTools.cpp. References img. |
|
set a Pixel with the current drawing colour
Definition at line 23 of file vuDrawTools.cpp. References cDC. |