Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 4 of 4

Thread: PBuffer documentation?

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2004
    Posts
    4

    PBuffer documentation?

    I've got the glCarbon1ContextPBuffer sample app from Apple. Is there any documentation about how to use pbuffers on the Mac?

    I can't find aglCreatePBuffer anywhere except in the sample app.

    thanks,
    andy

  2. #2
    Advanced Member Frequent Contributor arekkusu's Avatar
    Join Date
    Nov 2003
    Posts
    676

    Re: PBuffer documentation?

    There is still no official spec, but Geoff Stahl posted preliminary documentation in 4 parts to the mailing list on June 22.

  3. #3
    Junior Member Newbie
    Join Date
    Aug 2004
    Posts
    4

    Re: PBuffer documentation?

    Thanks, I'll look through this.

    I want to be on that mailing list, too.

    thanks
    andy

  4. #4
    Junior Member Newbie
    Join Date
    Aug 2004
    Posts
    4

    Re: PBuffer documentation?

    I figured out some stuff, so I'm editing the following post, so people see my answer (in []) as well as my questions.

    ==============
    The info in those posts seems to be using CGL instead of AGL. I'm working with AGL, just because that's what the original OpenGL (not using PBuffers) in our code and the sample app I have are using.

    Is there a good AGL vs CGL description somewhere?

    My aglCreatePBuffer() call is failing. When I pass the error to aglErrorString, it says "invalid numerical value". I'm not sure if that is a complaint that glErrorString can't figure out my error value, or if there is some problem with a value in aglCreatePBuffer. (The error is 10008, or 0x2718.)

    [Turns out that 10008 is kCGLBadValue. I believe this is because my width and height aren't powers of 2. I don't want to use the PBuffer as a texture, so hadn't thought of that limitation. I'll have to see whether I can pass in a different target than GL_TEXTURE_2D.]

    andy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •