put some wgl parts under _WIN32

This commit is contained in:
Jonathan Gray 2013-04-25 15:01:53 +10:00
parent 4d606a650d
commit 37d2ad3bf1
3 changed files with 6 additions and 1 deletions

View file

@ -182,7 +182,7 @@ extern PFNGLGETCOMBINEROUTPUTPARAMETERIVNV qglGetCombinerOutputParameterivNV;
extern PFNGLGETFINALCOMBINERINPUTPARAMETERFVNV qglGetFinalCombinerInputParameterfvNV; extern PFNGLGETFINALCOMBINERINPUTPARAMETERFVNV qglGetFinalCombinerInputParameterfvNV;
extern PFNGLGETFINALCOMBINERINPUTPARAMETERIVNV qglGetFinalCombinerInputParameterivNV; extern PFNGLGETFINALCOMBINERINPUTPARAMETERIVNV qglGetFinalCombinerInputParameterivNV;
#ifdef _WIN32
///////////////////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Pixel Format extension definitions. - AReis // Pixel Format extension definitions. - AReis
/***********************************************************************************************************/ /***********************************************************************************************************/
@ -251,6 +251,7 @@ typedef BOOL (WINAPI * PFNWGLSETPBUFFERATTRIBARBPROC) (HPBUFFERARB hPbuffer, con
extern PFNWGLBINDTEXIMAGEARBPROC qwglBindTexImageARB; extern PFNWGLBINDTEXIMAGEARBPROC qwglBindTexImageARB;
extern PFNWGLRELEASETEXIMAGEARBPROC qwglReleaseTexImageARB; extern PFNWGLRELEASETEXIMAGEARBPROC qwglReleaseTexImageARB;
extern PFNWGLSETPBUFFERATTRIBARBPROC qwglSetPbufferAttribARB; extern PFNWGLSETPBUFFERATTRIBARBPROC qwglSetPbufferAttribARB;
#endif // _WIN32
///////////////////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////////////////////

View file

@ -251,6 +251,7 @@ PFNGLGETCOMBINEROUTPUTPARAMETERIVNV qglGetCombinerOutputParameterivNV = NULL;
PFNGLGETFINALCOMBINERINPUTPARAMETERFVNV qglGetFinalCombinerInputParameterfvNV = NULL; PFNGLGETFINALCOMBINERINPUTPARAMETERFVNV qglGetFinalCombinerInputParameterfvNV = NULL;
PFNGLGETFINALCOMBINERINPUTPARAMETERIVNV qglGetFinalCombinerInputParameterivNV = NULL; PFNGLGETFINALCOMBINERINPUTPARAMETERIVNV qglGetFinalCombinerInputParameterivNV = NULL;
#ifdef _WIN32
// Declare Pixel Format function pointers. // Declare Pixel Format function pointers.
PFNWGLGETPIXELFORMATATTRIBIVARBPROC qwglGetPixelFormatAttribivARB = NULL; PFNWGLGETPIXELFORMATATTRIBIVARBPROC qwglGetPixelFormatAttribivARB = NULL;
PFNWGLGETPIXELFORMATATTRIBFVARBPROC qwglGetPixelFormatAttribfvARB = NULL; PFNWGLGETPIXELFORMATATTRIBFVARBPROC qwglGetPixelFormatAttribfvARB = NULL;
@ -267,6 +268,7 @@ PFNWGLQUERYPBUFFERARBPROC qwglQueryPbufferARB = NULL;
PFNWGLBINDTEXIMAGEARBPROC qwglBindTexImageARB = NULL; PFNWGLBINDTEXIMAGEARBPROC qwglBindTexImageARB = NULL;
PFNWGLRELEASETEXIMAGEARBPROC qwglReleaseTexImageARB = NULL; PFNWGLRELEASETEXIMAGEARBPROC qwglReleaseTexImageARB = NULL;
PFNWGLSETPBUFFERATTRIBARBPROC qwglSetPbufferAttribARB = NULL; PFNWGLSETPBUFFERATTRIBARBPROC qwglSetPbufferAttribARB = NULL;
#endif // _WIN32
// Declare Vertex and Fragment Program function pointers. // Declare Vertex and Fragment Program function pointers.
PFNGLPROGRAMSTRINGARBPROC qglProgramStringARB = NULL; PFNGLPROGRAMSTRINGARBPROC qglProgramStringARB = NULL;

View file

@ -1156,6 +1156,7 @@ void R_Modellist_f (void);
class CPBUFFER class CPBUFFER
{ {
private: private:
#ifdef _WIN32
// Pixel Buffer Rendering and Device Contexts. // Pixel Buffer Rendering and Device Contexts.
HGLRC m_hRC; HGLRC m_hRC;
HDC m_hDC; HDC m_hDC;
@ -1166,6 +1167,7 @@ private:
// Buffer handle. // Buffer handle.
HPBUFFERARB m_hBuffer; HPBUFFERARB m_hBuffer;
#endif
// Buffer Dimensions. // Buffer Dimensions.
int m_iWidth, m_iHeight; int m_iWidth, m_iHeight;