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, | 12 PP_GRAPHICS3DERROR_BAD_ATTRIBUTE = 0x3004, |
13 PP_GRAPHICS3DERROR_CONTEXT_LOST = 0x300E | 13 PP_GRAPHICS3DERROR_CONTEXT_LOST = 0x300E |
14 }; | 14 }; |
15 | 15 |
16 enum PP_Graphics3DString_Dev { | |
17 PP_GRAPHICS3DSTRING_VENDOR = 0x3053, | |
18 PP_GRAPHICS3DSTRING_VERSION = 0x3054, | |
19 // Which extensions are supported. | |
20 PP_GRAPHICS3DSTRING_EXTENSIONS = 0x3055 | |
21 }; | |
22 | |
23 enum PP_Graphics3DAttrib_Dev { | 16 enum PP_Graphics3DAttrib_Dev { |
24 // Bits of Alpha in the color buffer. | 17 // Bits of Alpha in the color buffer. |
25 PP_GRAPHICS3DATTRIB_ALPHA_SIZE = 0x3021, | 18 PP_GRAPHICS3DATTRIB_ALPHA_SIZE = 0x3021, |
26 // Bits of Blue in the color buffer. | 19 // Bits of Blue in the color buffer. |
27 PP_GRAPHICS3DATTRIB_BLUE_SIZE = 0x3022, | 20 PP_GRAPHICS3DATTRIB_BLUE_SIZE = 0x3022, |
28 // Bits of Green in the color buffer. | 21 // Bits of Green in the color buffer. |
29 PP_GRAPHICS3DATTRIB_GREEN_SIZE = 0x3023, | 22 PP_GRAPHICS3DATTRIB_GREEN_SIZE = 0x3023, |
30 // Bits of Red in the color buffer. | 23 // Bits of Red in the color buffer. |
31 PP_GRAPHICS3DATTRIB_RED_SIZE = 0x3024, | 24 PP_GRAPHICS3DATTRIB_RED_SIZE = 0x3024, |
32 // Bits of Z in the depth buffer. | 25 // Bits of Z in the depth buffer. |
(...skipping 20 matching lines...) Expand all Loading... |
53 PP_GRAPHICS3DATTRIB_BUFFER_PRESERVED = 0x3094, | 46 PP_GRAPHICS3DATTRIB_BUFFER_PRESERVED = 0x3094, |
54 // Indicates that color buffer contents may be destroyed or changed. | 47 // Indicates that color buffer contents may be destroyed or changed. |
55 PP_GRAPHICS3DATTRIB_BUFFER_DESTROYED = 0x3095 | 48 PP_GRAPHICS3DATTRIB_BUFFER_DESTROYED = 0x3095 |
56 }; | 49 }; |
57 | 50 |
58 // 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 |
59 // are deprecated. | 52 // are deprecated. |
60 typedef int32_t PP_Config3D_Dev; | 53 typedef int32_t PP_Config3D_Dev; |
61 | 54 |
62 #endif // PPAPI_C_DEV_PP_GRAPHICS_3D_DEV_H_ | 55 #endif // PPAPI_C_DEV_PP_GRAPHICS_3D_DEV_H_ |
OLD | NEW |