In file libs/cs2d/openglos2/glos2.h:

class csGraphics2DOS2GL : public csGraphics2DGLCommon

This is the OS/2 OpenGL 2D driver

Inheritance:


Private Fields

ULONG GLPalette[256]
The palette
glWindow* glW
The OpenGL window object
bool HardwareCursor
Use native mouse cursor, if possible?
UInt LineAddressFrameW
The width for which LineAddress has been computed last time
IOS2SystemDriver* OS2System
Pointer to the OS/2 system driver
UInt PixelFormat
Pixel format (a combination of GLCF_XXX)
ISystem* System
Pointer to system driver interface
bool UpdatePalette
TRUE if palette has to be updated
int WindowX
Window position in percents
HWND WinHandle
The handle of window where OpenGL context is located

Inherited from csGraphics2DGLCommon:

Public Methods

virtual void DrawBox(int x, int y, int w, int h, int color)
virtual void DrawLine(int x1, int y1, int x2, int y2, int color)
static void DrawPixelGL(int x, int y, int color)
static void DrawSpriteGL(ITextureHandle *hTex, int sx, int sy, int sw, int sh, int tx, int ty, int tw, int th)
static unsigned char* GetPixelAtGL(int x, int y)
virtual void Initialize()
virtual bool Open(char *Title)
static void setGLColorfromint(int color)
static void WriteCharGL(int x, int y, int fg, int bg, char c)

Private Fields

static csGraphics2DOpenGLFontServer* LocalFontServer
static OpenGLTextureCache* texture_cache

Inherited from csGraphics2D:

Public Fields

static int Font
static bool FullScreen
static RGBpaletteEntry Palette[256]
static bool PaletteAlloc[256]
static int Width

Public Methods

static void (*DrawPixel)(int x, int y, int color)
static void (*DrawSprite)(ITextureHandle *hTex, int sx, int sy, int sw, int sh, int tx, int ty, int tw, int th)
static unsigned char* (*GetPixelAt)(int x, int y)
static void (*WriteChar)(int x, int y, int fg, int bg, char c)
virtual bool BeginDraw()
virtual void Clear(int color)
void ClearAll(int color)
static bool ClipLine(float &x1, float &y1, float &x2, float &y2, int xmin, int ymin, int xmax, int ymax)
virtual void Close()
virtual bool DoubleBuffer(bool Enable)
virtual bool DoubleBuffer()
static void DrawPixel8(int x, int y, int color)
virtual void FinishDraw()
virtual void FreeArea(ImageArea *Area)
virtual void GetClipRect(int &xmin, int &ymin, int &xmax, int &ymax)
int GetNumPalEntries()
virtual int GetPage()
int GetPixelBytes()
csPixelFormat* GetPixelFormat()
virtual void GetStringError(HRESULT hRes, char* szValue)
virtual int GetTextHeight(int Font)
virtual int GetTextWidth(int Font, char *text)
virtual bool PerformExtension(char* args)
virtual void Print(csRect *area = NULL)
virtual void RestoreArea(ImageArea *Area, bool Free = true)
virtual bool SaveArea(ImageArea *&Area, int x, int y, int w, int h)
virtual void SetClipRect(int xmin, int ymin, int xmax, int ymax)
virtual bool SetMouseCursor(int iShape, ITextureHandle *hBitmap)
virtual bool SetMousePosition(int x, int y)
virtual void SetRGB(int i, int r, int g, int b)
void SysPrintf(int mode, char* text, ...)
virtual void Write(int x, int y, int fg, int bg, char *text)

Public

Protected Fields

static int ClipX1
static int* LineAddress
static unsigned char* Memory
static csPixelFormat pfmt
static ISystem* system

Protected Methods

void complete_pixel_format()
static void DrawPixel16(int x, int y, int color)
static void DrawPixel32(int x, int y, int color)
static void DrawSprite16(ITextureHandle *hTex, int sx, int sy, int sw, int sh, int tx, int ty, int tw, int th)
static void DrawSprite32(ITextureHandle *hTex, int sx, int sy, int sw, int sh, int tx, int ty, int tw, int th)
static void DrawSprite8(ITextureHandle *hTex, int sx, int sy, int sw, int sh, int tx, int ty, int tw, int th)
static unsigned char* GetPixelAt16(int x, int y)
static unsigned char* GetPixelAt32(int x, int y)
static unsigned char* GetPixelAt8(int x, int y)
static void WriteChar16(int x, int y, int fg, int bg, char c)
static void WriteChar32(int x, int y, int fg, int bg, char c)
static void WriteChar8(int x, int y, int fg, int bg, char c)

Protected


Documentation

This is the OS/2 OpenGL 2D driver. I did not had any chance to test it on any videocard that supports hardware acceleration for OS/2 OpenGL but I hope it will work.

The OS/2 OpenGL window is not resizeable as Crystal Space does not support dynamically resizeable windows. The support for color index modes (256 color) is not (yet?) functional (it's the fault of 3D driver).

UInt PixelFormat
Pixel format (a combination of GLCF_XXX)

UInt LineAddressFrameW
The width for which LineAddress has been computed last time

glWindow* glW
The OpenGL window object

HWND WinHandle
The handle of window where OpenGL context is located

ULONG GLPalette[256]
The palette

bool UpdatePalette
TRUE if palette has to be updated

bool HardwareCursor
Use native mouse cursor, if possible?

int WindowX
Window position in percents

ISystem* System
Pointer to system driver interface

IOS2SystemDriver* OS2System
Pointer to the OS/2 system driver


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de