Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

pbuffer internalFormat



Are pixel buffers under CGL really limited to only GL_RGB and GL_RGBA? The documentation current states:

"||internalFormat||

   A constant that specifies the new Pbuffer’s internal color format,
   which must be either |GL_RGB| or |GL_RGBA|."

Is this still the case? Is possible to create a single channel pbuffer (instead of only a 3 or 4 channel pbuffer)?
I basically want to render the depth buffer to a pbuffer so I can use it in a subsequent pass without having to manually copy the depth to a texture. One way I can think of doing it is allocating a single channel float pbuffer and then using a fragment program to output the pixels depth as the fragment color. Is there a better way to do this?


thanks!
-j
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.