View Full Version : Question about OGL initialization (+)
08-10-2001, 05:29 AM
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 ?
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.
08-10-2001, 05:53 AM
You could always explicitly load the dll and use GetProcAddress to get the function pointers you needed.
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.
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
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.