diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2011-12-31 14:00:49 +0100 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2011-12-31 14:00:49 +0100 |
| commit | 8b76105cfa70e74b76e38ed2a867e806bba8e0ff (patch) | |
| tree | eb943bf09b5ecd2eaf949f9aa3b21521deadcd93 /src/engine/client/graphics_threaded.h | |
| parent | 6e57620c2ca9042732d67134e2986a4ad96d2534 (diff) | |
| download | zcatch-8b76105cfa70e74b76e38ed2a867e806bba8e0ff.tar.gz zcatch-8b76105cfa70e74b76e38ed2a867e806bba8e0ff.zip | |
cleaned up some of the code
Diffstat (limited to 'src/engine/client/graphics_threaded.h')
| -rw-r--r-- | src/engine/client/graphics_threaded.h | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/src/engine/client/graphics_threaded.h b/src/engine/client/graphics_threaded.h index 41565ca2..54455d6d 100644 --- a/src/engine/client/graphics_threaded.h +++ b/src/engine/client/graphics_threaded.h @@ -92,6 +92,13 @@ public: enum { + INITFLAG_FULLSCREEN = 1, + INITFLAG_VSYNC = 2, + INITFLAG_RESIZABLE = 4, + }; + + enum + { // PRIMTYPE_INVALID = 0, PRIMTYPE_LINES, @@ -148,9 +155,22 @@ public: struct SCommand_Init : public SCommand { SCommand_Init() : SCommand(CMD_INIT) {} + + char m_aName[256]; + + int m_ScreenWidth; + int m_ScreenHeight; + int m_FsaaSamples; + int m_Flags; + volatile int *m_pResult; }; - + + struct SCommand_Shutdown : public SCommand + { + SCommand_Shutdown() : SCommand(CMD_SHUTDOWN) {} + }; + struct SCommand_Signal : public SCommand { SCommand_Signal() : SCommand(CMD_SIGNAL) {} @@ -337,6 +357,9 @@ class CGraphics_Threaded : public IEngineGraphics static unsigned char Sample(int w, int h, const unsigned char *pData, int u, int v, int Offset, int ScaleW, int ScaleH, int Bpp); static unsigned char *Rescale(int Width, int Height, int NewWidth, int NewHeight, int Format, const unsigned char *pData); + + int IssueInit(); + int InitWindow(); public: CGraphics_Threaded(); |