Permalink
Browse files

Added depthFormat property to MacView

  • Loading branch information...
1 parent c55954a commit f629491a63e95efb2be228e6b751e53a66cdac45 @ricardoquesada ricardoquesada committed Apr 14, 2012
Showing with 8 additions and 0 deletions.
  1. +3 −0 cocos2d/Platforms/Mac/CCGLView.h
  2. +5 −0 cocos2d/Platforms/Mac/CCGLView.m
@@ -84,6 +84,9 @@
/** unlocks the openGL context */
-(void) unlockOpenGLContext;
+/** returns the depth format of the view in BPP */
+- (NSUInteger) depthFormat;
+
// private
+(void) load_;
@end
@@ -114,6 +114,11 @@ - (void) prepareOpenGL
// [[self openGLContext] setValues:&order forParameter:NSOpenGLCPSurfaceOrder];
}
+- (NSUInteger) depthFormat
+{
+ return 24;
+}
+
- (void) reshape
{
// We draw on a secondary thread through the display link

0 comments on commit f629491

Please sign in to comment.