From 8b76105cfa70e74b76e38ed2a867e806bba8e0ff Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sat, 31 Dec 2011 14:00:49 +0100 Subject: cleaned up some of the code --- src/engine/client/graphics_threaded.h | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) (limited to 'src/engine/client/graphics_threaded.h') 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 @@ -90,6 +90,13 @@ public: TEXFLAG_NOMIPMAPS = 1, }; + enum + { + INITFLAG_FULLSCREEN = 1, + INITFLAG_VSYNC = 2, + INITFLAG_RESIZABLE = 4, + }; + enum { // @@ -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(); -- cgit 1.4.1