class csGraphics2DGLCommon : public csGraphics2D Basic OpenGL version of the 2D driver class You can look at the openGLX graphics class as an example of how to inherit and use this class
Basic OpenGL version of the 2D driver class You can look at the openGLX graphics class as an example of how to inherit and use this class. In short, inherit from this common class instead of from csGraphics2D, and override all the functions you normally would except for the 2D drawing functions, which are supplied for you here. That way all OpenGL drawing functions are unified over platforms, so that a fix or improvement will be inherited by all platforms instead of percolating via people copying code over. -GJH
static csGraphics2DOpenGLFontServer* LocalFontServer
ISystem* System
csGraphics2DGLCommon(ISystem* piSystem)
virtual ~csGraphics2DGLCommon()
virtual void Initialize()
virtual bool Open(char *Title)
virtual void DrawLine(int x1, int y1, int x2, int y2, int color)
virtual void DrawBox(int x, int y, int w, int h, int color)
static void DrawPixelGL(int x, int y, int color)
static void WriteCharGL(int x, int y, int fg, int bg, char c)
static void DrawSpriteGL(ITextureHandle *hTex, int sx, int sy, int sw, int sh, int tx, int ty, int tw, int th)
static void setGLColorfromint(int color)
static unsigned char* GetPixelAtGL(int x, int y)
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de