View Single Post
Old 02-03-05, 09:32 AM   #3
realmaxime
Registered User
 
realmaxime's Avatar
 
Join Date: Jan 2005
Location: Kaltenkirchen, SH (Germany)
Posts: 5
Send a message via ICQ to realmaxime Send a message via MSN to realmaxime
Default Re: PBuffers and GLX Support

Thank you! I now found out how to get it running under linux, but well, it wont work under windows.

I got the leatest header files from sgi - developer central, but i cant really use them in my compiler.

i m using dev-c++ to compile my code, because some of the code needs a "windows.h" file, which is not included into normal version of ms vc++ toolkit 2003 (that i downloaded before i used pbuffers )

i get these messages:

Code:
PBuffer.cpp: In member function `bool PBuffer::create(PBufferSettings)':
PBuffer.cpp:220: error: `wglChoosePixelFormatARB' undeclared (first use this 
   function)
PBuffer.cpp:220: error: (Each undeclared identifier is reported only once for 
   each function it appears in.)

PBuffer.cpp:228: error: `wglCreatePbufferARB' undeclared (first use this 
   function)
PBuffer.cpp:235: error: `wglGetPbufferDCARB' undeclared (first use this 
   function)

PBuffer.cpp: In member function `bool PBuffer::destroy()':
PBuffer.cpp:298: error: `wglReleasePbufferDCARB' undeclared (first use this 
   function)
PBuffer.cpp:299: error: `wglDestroyPbufferARB' undeclared (first use this 
   function)

PBuffer.cpp: In member function `bool PBuffer::check()':
PBuffer.cpp:448: error: `wglQueryPbufferARB' undeclared (first use this
i included the new headerfiles, but the declared functions dont seem to be implemented in my openGL version. where to get a new one? or what am i doing wrong... (i have no glext.a/.lib or glexw.a/.lib on my computer if something like that would be needful...)

my includes:
Code:
#include <GL/gl.h> 
#include <GL/glext.h>
#include <GL/glut.h>

#ifndef _WIN32
	// unix includes
	#include <X11/X.h>
	#include <GL/glx.h>
	#include <GL/glxext.h>
#else
	// windows includes
	#include <windows.h>
 	#include <GL/wglext.h>
#endif
kind regards,
roger


[edit] ... just checkin out the glSDK from sgi, maybe i find some more there... [/edit]
__________________
there is always another choice
{ rtfm | rm -rf / }
realmaxime is offline   Reply With Quote