OLD | NEW |
| (Empty) |
1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
2 * Use of this source code is governed by a BSD-style license that can be | |
3 * found in the LICENSE file. | |
4 */ | |
5 | |
6 #ifndef PPAPI_C_DEV_PP_GRAPHICS_3D_DEV_H_ | |
7 #define PPAPI_C_DEV_PP_GRAPHICS_3D_DEV_H_ | |
8 | |
9 #include "ppapi/c/pp_stdint.h" | |
10 | |
11 enum PP_Graphics3DAttrib_Dev { | |
12 // Bits of Alpha in the color buffer. | |
13 PP_GRAPHICS3DATTRIB_ALPHA_SIZE = 0x3021, | |
14 // Bits of Blue in the color buffer. | |
15 PP_GRAPHICS3DATTRIB_BLUE_SIZE = 0x3022, | |
16 // Bits of Green in the color buffer. | |
17 PP_GRAPHICS3DATTRIB_GREEN_SIZE = 0x3023, | |
18 // Bits of Red in the color buffer. | |
19 PP_GRAPHICS3DATTRIB_RED_SIZE = 0x3024, | |
20 // Bits of Z in the depth buffer. | |
21 PP_GRAPHICS3DATTRIB_DEPTH_SIZE = 0x3025, | |
22 // Bits of Stencil in the stencil buffer. | |
23 PP_GRAPHICS3DATTRIB_STENCIL_SIZE = 0x3026, | |
24 // Number of samples per pixel. | |
25 PP_GRAPHICS3DATTRIB_SAMPLES = 0x3031, | |
26 // Number of multisample buffers. | |
27 PP_GRAPHICS3DATTRIB_SAMPLE_BUFFERS = 0x3032, | |
28 // Attrib list terminator. | |
29 PP_GRAPHICS3DATTRIB_NONE = 0x3038, | |
30 // Height of surface in pixels. | |
31 PP_GRAPHICS3DATTRIB_HEIGHT = 0x3056, | |
32 // Width of surface in pixels. | |
33 PP_GRAPHICS3DATTRIB_WIDTH = 0x3057, | |
34 | |
35 // Specifies the effect on the color buffer of posting a surface | |
36 // with SwapBuffers. The initial value is chosen by the implementation. | |
37 PP_GRAPHICS3DATTRIB_SWAP_BEHAVIOR = 0x3093, | |
38 // Indicates that color buffer contents are unaffected. | |
39 PP_GRAPHICS3DATTRIB_BUFFER_PRESERVED = 0x3094, | |
40 // Indicates that color buffer contents may be destroyed or changed. | |
41 PP_GRAPHICS3DATTRIB_BUFFER_DESTROYED = 0x3095 | |
42 }; | |
43 | |
44 // TODO(alokp): Remove this when PPB_Context3D_Dev and PPB_Surface3D_Dev | |
45 // are deprecated. | |
46 typedef int32_t PP_Config3D_Dev; | |
47 | |
48 #endif // PPAPI_C_DEV_PP_GRAPHICS_3D_DEV_H_ | |
OLD | NEW |