| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Kenneth Dyke wrote:
The internal format in this case really just means how the pbuffer's data will be treated with regard to the texture environment. I.e., will the data be treated as having alpha or not.So, after looking at the pixel format attribute documentaion, I'm a little confused. Under CGL it appears that I can only specify a single color size via kCGLPFAColorSize (under GLX you can specify a size for each channel, I believe). What I if I wanted a RGB format of <8,8,0> (no blue channel) or <16,0,0> (only a half float red channel). I'm interested in doing some gpgpu (http://gpgpu.org/) work with CGL, and there are times are you only want a single channel (or even a two channel) pbuffer.
The real data format of the pbuffer will be inherited from the pixel format of the context(s) attaching to it. So if you attach a context with a pixel format that is set up for ARGB 1555, that's what the data format of the pbuffer will be.
-Ken
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
| References: | |
| >pbuffer internalFormat (From: Justin Hensley <email@hidden>) | |
| >Re: pbuffer internalFormat (From: Kenneth Dyke <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.