• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Can I use AGL functions with NSOpenGLContext ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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!


References: 
 >Re: Can I use AGL functions with NSOpenGLContext ? (From: "Jeff Galyan" <email@hidden>)

  • Prev by Date: Cursor tracking rects
  • Next by Date: Java implementation for outlineView:itemForPersistentObject:?
  • Previous by thread: Re: Can I use AGL functions with NSOpenGLContext ?
  • Next by thread: Unexpected behavior of NSNumberFormatter
  • Index(es):
    • Date
    • Thread