From c31c82a5840640b0c7f4b07eb90e681b88b0a330 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sun, 1 Jan 2012 14:30:45 +0100 Subject: added support for video modes --- src/engine/client/graphics_threaded.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (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 1e69674d..8b1c772d 100644 --- a/src/engine/client/graphics_threaded.h +++ b/src/engine/client/graphics_threaded.h @@ -79,8 +79,9 @@ public: // swap CMD_SWAP, - // + // misc CMD_SCREENSHOT, + CMD_VIDEOMODES, }; enum @@ -192,7 +193,7 @@ public: SState m_State; unsigned m_PrimType; unsigned m_PrimCount; - SVertex *m_pVertices; + SVertex *m_pVertices; // you should use the command buffer data to allocate vertices for this command }; struct SCommand_Screenshot : public SCommand @@ -201,6 +202,15 @@ public: CImageInfo *m_pImage; // processor will fill this out, the one who adds this command must free the data as well }; + struct SCommand_VideoModes : public SCommand + { + SCommand_VideoModes() : SCommand(CMD_VIDEOMODES) {} + + CVideoMode *m_pModes; // processor will fill this in + int m_MaxModes; // maximum of modes the processor can write to the m_pModes + int *m_pNumModes; // processor will write to this pointer + }; + struct SCommand_Swap : public SCommand { SCommand_Swap() : SCommand(CMD_SWAP) {} -- cgit 1.4.1