Re: Can I use AGL functions with NSOpenGLContext ?
Re: Can I use AGL functions with NSOpenGLContext ?
- Subject: Re: Can I use AGL functions with NSOpenGLContext ?
- From: Nat! <email@hidden>
- Date: Sat, 29 Dec 2001 02:17:45 +0100
On Donnerstag, Dezember 27, 2001, at 07:30 Uhr, Jeff Galyan wrote:
The function aglUseFont is unsupported in Carbon/Mac OS X,
according to the
Carbon docs. That's probably why you're getting a bus error (the
function
pointer would be nil).
Not exactly... aglUseFont does exist in the AGL framework and does
call aglGetCurrentContext, which then crashes. True, the Carbon dox
of GL say that aglUseFont and aglGetCurrentContext are unsupported.
But glColor3f and glFlush are also unsupported by Carbon (according
to the same dox). The intro says
<<<quote>>>
OpenGL
The OpenGL APIs are compatible with Carbon on both the Mac OS X and
Mac OS 8 and 9 platforms. However, these functions are currently
not exported by Carbon libraries. Your Carbon application must weak
link to the OpenGL libraries separately for each platform.
<<<end quote>>>
It appears to me that "unsupported" means here "not directly
available by linking with carbon".
What I wonder is, if AGL is supposed to be a Carbon exclusive
framework ? Is it a "legacy" framework ? Is it an intended
feature/oversight/bug that there is no interface to
NSOpenGLContext ?
Cheers
Nat!