OLD | NEW |
---|---|
1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
4 */ | 4 */ |
5 | 5 |
6 #ifndef PPAPI_C_DEV_PP_GRAPHICS_3D_DEV_H_ | 6 #ifndef PPAPI_C_DEV_PP_GRAPHICS_3D_DEV_H_ |
7 #define PPAPI_C_DEV_PP_GRAPHICS_3D_DEV_H_ | 7 #define PPAPI_C_DEV_PP_GRAPHICS_3D_DEV_H_ |
8 | 8 |
9 #include "ppapi/c/pp_stdint.h" | 9 #include "ppapi/c/pp_stdint.h" |
10 | 10 |
11 enum PP_Graphics3DError_Dev { | 11 enum PP_Graphics3DError_Dev { |
12 PP_GRAPHICS3DERROR_BAD_ATTRIBUTE = 0x3004, | |
13 PP_GRAPHICS3DERROR_CONTEXT_LOST = 0x300E | 12 PP_GRAPHICS3DERROR_CONTEXT_LOST = 0x300E |
14 }; | 13 }; |
15 | 14 |
16 enum PP_Graphics3DAttrib_Dev { | 15 enum PP_Graphics3DAttrib_Dev { |
17 // Bits of Alpha in the color buffer. | 16 // Bits of Alpha in the color buffer. |
18 PP_GRAPHICS3DATTRIB_ALPHA_SIZE = 0x3021, | 17 PP_GRAPHICS3DATTRIB_ALPHA_SIZE = 0x3021, |
19 // Bits of Blue in the color buffer. | 18 // Bits of Blue in the color buffer. |
20 PP_GRAPHICS3DATTRIB_BLUE_SIZE = 0x3022, | 19 PP_GRAPHICS3DATTRIB_BLUE_SIZE = 0x3022, |
21 // Bits of Green in the color buffer. | 20 // Bits of Green in the color buffer. |
22 PP_GRAPHICS3DATTRIB_GREEN_SIZE = 0x3023, | 21 PP_GRAPHICS3DATTRIB_GREEN_SIZE = 0x3023, |
23 // Bits of Red in the color buffer. | 22 // Bits of Red in the color buffer. |
24 PP_GRAPHICS3DATTRIB_RED_SIZE = 0x3024, | 23 PP_GRAPHICS3DATTRIB_RED_SIZE = 0x3024, |
25 // Bits of Z in the depth buffer. | 24 // Bits of Z in the depth buffer. |
26 PP_GRAPHICS3DATTRIB_DEPTH_SIZE = 0x3025, | 25 PP_GRAPHICS3DATTRIB_DEPTH_SIZE = 0x3025, |
27 // Bits of Stencil in the stencil buffer. | 26 // Bits of Stencil in the stencil buffer. |
28 PP_GRAPHICS3DATTRIB_STENCIL_SIZE = 0x3026, | 27 PP_GRAPHICS3DATTRIB_STENCIL_SIZE = 0x3026, |
29 // Number of samples per pixel. | 28 // Number of samples per pixel. |
30 PP_GRAPHICS3DATTRIB_SAMPLES = 0x3031, | 29 PP_GRAPHICS3DATTRIB_SAMPLES = 0x3031, |
31 // Number of multisample buffers. | 30 // Number of multisample buffers. |
32 PP_GRAPHICS3DATTRIB_SAMPLE_BUFFERS = 0x3032, | 31 PP_GRAPHICS3DATTRIB_SAMPLE_BUFFERS = 0x3032, |
33 // Attrib list terminator. | 32 // Attrib list terminator. |
34 PP_GRAPHICS3DATTRIB_NONE = 0x3038, | 33 PP_GRAPHICS3DATTRIB_NONE = 0x3038, |
35 | 34 // Boolean to ignore the alpha channel of RGBA color buffer. |
36 // Surface-specific attributes. | 35 // The value of this attribute is ignored for RGB color buffer. |
36 PP_GRAPHICS3DATTRIB_BIND_RGB = 0x3039, | |
piman
2011/08/25 19:58:09
I think we want more flexibility than this here. A
greggman
2011/09/22 21:01:25
Do we need that functionality here?
I'm pretty su
| |
37 // Height of surface in pixels. | 37 // Height of surface in pixels. |
38 PP_GRAPHICS3DATTRIB_HEIGHT = 0x3056, | 38 PP_GRAPHICS3DATTRIB_HEIGHT = 0x3056, |
39 // Width of surface in pixels. | 39 // Width of surface in pixels. |
40 PP_GRAPHICS3DATTRIB_WIDTH = 0x3057, | 40 PP_GRAPHICS3DATTRIB_WIDTH = 0x3057, |
41 | 41 |
42 // Specifies the effect on the color buffer of posting a surface | 42 // Specifies the effect on the color buffer of posting a surface |
43 // with SwapBuffers. The initial value is chosen by the implementation. | 43 // with SwapBuffers. The initial value is chosen by the implementation. |
44 PP_GRAPHICS3DATTRIB_SWAP_BEHAVIOR = 0x3093, | 44 PP_GRAPHICS3DATTRIB_SWAP_BEHAVIOR = 0x3093, |
45 // Indicates that color buffer contents are unaffected. | 45 // Indicates that color buffer contents are unaffected. |
46 PP_GRAPHICS3DATTRIB_BUFFER_PRESERVED = 0x3094, | 46 PP_GRAPHICS3DATTRIB_BUFFER_PRESERVED = 0x3094, |
47 // Indicates that color buffer contents may be destroyed or changed. | 47 // Indicates that color buffer contents may be destroyed or changed. |
48 PP_GRAPHICS3DATTRIB_BUFFER_DESTROYED = 0x3095 | 48 PP_GRAPHICS3DATTRIB_BUFFER_DESTROYED = 0x3095 |
49 }; | 49 }; |
50 | 50 |
51 // TODO(alokp): Remove this when PPB_Context3D_Dev and PPB_Surface3D_Dev | 51 // TODO(alokp): Remove this when PPB_Context3D_Dev and PPB_Surface3D_Dev |
52 // are deprecated. | 52 // are deprecated. |
53 typedef int32_t PP_Config3D_Dev; | 53 typedef int32_t PP_Config3D_Dev; |
54 | 54 |
55 #endif // PPAPI_C_DEV_PP_GRAPHICS_3D_DEV_H_ | 55 #endif // PPAPI_C_DEV_PP_GRAPHICS_3D_DEV_H_ |
OLD | NEW |