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 PFNGLGETFINALCOMBINERINPUTPARAMETERIVNV qglGetFinalCombinerInputParameterivNV;
#ifdef _WIN32
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Pixel Format extension definitions. - AReis
/***********************************************************************************************************/
@ -251,6 +251,7 @@ typedef BOOL (WINAPI * PFNWGLSETPBUFFERATTRIBARBPROC) (HPBUFFERARB hPbuffer, con
extern PFNWGLBINDTEXIMAGEARBPROC qwglBindTexImageARB;
extern PFNWGLRELEASETEXIMAGEARBPROC qwglReleaseTexImageARB;
extern PFNWGLSETPBUFFERATTRIBARBPROC qwglSetPbufferAttribARB;
#endif // _WIN32
/////////////////////////////////////////////////////////////////////////////////////////////////////////////

View file

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

View file

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