PDA

View Full Version : Question about OGL initialization (+)



pagan
08-10-2001, 05:29 AM
Hi all
I need to create a OpenGL application under Windows but it must not use Windows OGL libraries. And I cant use GLUT because it use Win routines too (IMHO). Generally I can take OGL library from another source (SGI e.g.) but how I must initialize it under Windows ?
Thanx.

Michael Steinberg
08-10-2001, 05:41 AM
You need to link to microsofts libaries if you want to run it on microsoft platforms. There's no (good) way around it.

DFrey
08-10-2001, 05:53 AM
You could always explicitly load the dll and use GetProcAddress to get the function pointers you needed.

wangyi
08-10-2001, 04:59 PM
If you use the implementation from SGI, link to the opengl.lib and glu.lib.
If you use Microsoft's, opengl32.lib and glu32.dll

There should be no explicit initialization code. And if you use the proper *.Hs, no need to load DLLs dynamically.

Michael Steinberg
08-10-2001, 07:31 PM
DFrey: That is exactly the "not-so-good" way I (didn't explicitly) mention... http://www.opengl.org/discussion_boards/ubb/smile.gif