Mailing Lists: Apple Mailing Lists

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

noob question - depth test



I have some simple drawing (a cube) and its not getting drawn as I expect.

Some panes of the cube are drawing over other panes during rotation and such.

I have checked and double checked my CCW vs CC face drawing and stuff like that and it all looks good.

I'm drawing in a CAOpenGLLayer and a context is being passed to me, when I ask that context for its depth size I get zero. The code I'm using is basically this;
    GLint depth = -14;
    CGLDescribePixelFormat(pixelFormat, 0, kCGLPFADepthSize, &depth);

I googled and such trying to figure out how to change the depth buffer of the CGLContextObj but not much docs on doing that (looks like its not possible).

Couple of questions;

- is my guess about depth buffer correct?
- why is CAOpenGLLayer passing me a context with no depth buffer?

Any help would be appreciated!

TTFN,

-bd-

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