PDA

View Full Version : test if OpenGL lib are present



Vincent
02-15-2000, 12:46 AM
How can I know on Macintosh if OpenGL libraries are present. They must be a gestalt fonction.
Vhoffmann@bplorraine.fr

02-29-2000, 12:15 PM
In order for this to work, you need to "weak link" the stub libs. In CodeWarrior, click on the libs, open project inspector, and check "import weak"

if ((Ptr) kUnresolvedCFragSymbolAddress ==
(Ptr) glBegin)
{
// error, opengl not installed

}

HTH,
Darrell