• 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: "Jeff Galyan" <email@hidden>
  • Date: Thu, 27 Dec 2001 11:30:39 -0700

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).

Look at
http://developer.apple.com/samplecode/Sample_Code/Graphics_3D/CGText.htm
This sample code should give you what you need. After only a cursory review
of the code, it looks to me like it basically draws a string into an
(undisplayed) NSTextView and uses that to create bitmap textures on the fly,
one for each glyph, then maps them onto quads in the GL view.

--Jeff


On 12/26/01 3:37 PM, "Nat!" <email@hidden> wrote:

> Is NSOpenGLContext incompatible with AGL ?
>
> I am trying to display a string in my NSOpenGLView. I was trying to
> use aglUseFont() to create a list, but that needs an AGLContext as
> the first parameter. Calling aglGetCurrentContext() to get the
> active AGL context bus errors though.
>
> I can't (I think) create an AGLContext myself, because I want to
> render in the NSOpenGLContext currentContext and I see no way how
> to get AGL and NSOpenGLContext to know each other.
>
> Cheers
> Nat!
> ------------------------------------------------------
> Some people drink deep from the fountains of life, and
> some just gargle. -- DLR
> _______________________________________________
> cocoa-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Can I use AGL functions with NSOpenGLContext ?
      • From: Nat! <email@hidden>
References: 
 >Can I use AGL functions with NSOpenGLContext ? (From: Nat! <email@hidden>)

  • Prev by Date: Re: CFNetwork?
  • Next by Date: Re: CFNetwork?
  • Previous by thread: Can I use AGL functions with NSOpenGLContext ?
  • Next by thread: Re: Can I use AGL functions with NSOpenGLContext ?
  • Index(es):
    • Date
    • Thread