Previous Book Contents Book Index Next

Inside Macintosh: Apple Game Sprockets Guide /
Chapter 2 - DrawSprocket / DrawSprocket Reference
Constants


Depth Masks

You provide a depth mask in the backBufferDepthMask and displayDepthMask fields of the context attributes structure to specify the pixel depths that are acceptable to your program. You can construct the mask from the constants defined by the following enumeration:

enum DSpDepthMask {
   kDSpDepthMask_1         = 1U<<0,
   kDSpDepthMask_2         = 1U<<1,
   kDSpDepthMask_4         = 1U<<2,
   kDSpDepthMask_8         = 1U<<3,
   kDSpDepthMask_16        = 1U<<4,
   kDSpDepthMask_32        = 1U<<5,
   kDSpDepthMask_All       = ~0U
};

typedef enum DSpDepthMask DSpDepthMask;
Constant descriptions

kDSpDepthMask_1
1-bit pixel depth is acceptable.
kDSpDepthMask_2
2-bit pixel depth is acceptable.
kDSpDepthMask_4
4-bit pixel depth is acceptable.
kDSpDepthMask_8
8-bit pixel depth is acceptable.
kDSpDepthMask_16
16-bit pixel depth is acceptable.
kDSpDepthMask_32
32-bit pixel depth is acceptable.
kDSpDepthMask_All
Any pixel depth is acceptable.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996