| 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 { | |
| 12 PP_GRAPHICS3DERROR_BAD_ATTRIBUTE = 0x3004, | |
| 13 PP_GRAPHICS3DERROR_CONTEXT_LOST = 0x300E | |
| 14 }; | |
| 15 | |
| 16 enum PP_Graphics3DAttrib_Dev { | 11 enum PP_Graphics3DAttrib_Dev { |
| 17 // Bits of Alpha in the color buffer. | 12 // Bits of Alpha in the color buffer. |
| 18 PP_GRAPHICS3DATTRIB_ALPHA_SIZE = 0x3021, | 13 PP_GRAPHICS3DATTRIB_ALPHA_SIZE = 0x3021, |
| 19 // Bits of Blue in the color buffer. | 14 // Bits of Blue in the color buffer. |
| 20 PP_GRAPHICS3DATTRIB_BLUE_SIZE = 0x3022, | 15 PP_GRAPHICS3DATTRIB_BLUE_SIZE = 0x3022, |
| 21 // Bits of Green in the color buffer. | 16 // Bits of Green in the color buffer. |
| 22 PP_GRAPHICS3DATTRIB_GREEN_SIZE = 0x3023, | 17 PP_GRAPHICS3DATTRIB_GREEN_SIZE = 0x3023, |
| 23 // Bits of Red in the color buffer. | 18 // Bits of Red in the color buffer. |
| 24 PP_GRAPHICS3DATTRIB_RED_SIZE = 0x3024, | 19 PP_GRAPHICS3DATTRIB_RED_SIZE = 0x3024, |
| 25 // Bits of Z in the depth buffer. | 20 // Bits of Z in the depth buffer. |
| 26 PP_GRAPHICS3DATTRIB_DEPTH_SIZE = 0x3025, | 21 PP_GRAPHICS3DATTRIB_DEPTH_SIZE = 0x3025, |
| 27 // Bits of Stencil in the stencil buffer. | 22 // Bits of Stencil in the stencil buffer. |
| 28 PP_GRAPHICS3DATTRIB_STENCIL_SIZE = 0x3026, | 23 PP_GRAPHICS3DATTRIB_STENCIL_SIZE = 0x3026, |
| 29 // Number of samples per pixel. | 24 // Number of samples per pixel. |
| 30 PP_GRAPHICS3DATTRIB_SAMPLES = 0x3031, | 25 PP_GRAPHICS3DATTRIB_SAMPLES = 0x3031, |
| 31 // Number of multisample buffers. | 26 // Number of multisample buffers. |
| 32 PP_GRAPHICS3DATTRIB_SAMPLE_BUFFERS = 0x3032, | 27 PP_GRAPHICS3DATTRIB_SAMPLE_BUFFERS = 0x3032, |
| 33 // Attrib list terminator. | 28 // Attrib list terminator. |
| 34 PP_GRAPHICS3DATTRIB_NONE = 0x3038, | 29 PP_GRAPHICS3DATTRIB_NONE = 0x3038, |
| 35 | |
| 36 // Surface-specific attributes. | |
| 37 // Height of surface in pixels. | 30 // Height of surface in pixels. |
| 38 PP_GRAPHICS3DATTRIB_HEIGHT = 0x3056, | 31 PP_GRAPHICS3DATTRIB_HEIGHT = 0x3056, |
| 39 // Width of surface in pixels. | 32 // Width of surface in pixels. |
| 40 PP_GRAPHICS3DATTRIB_WIDTH = 0x3057, | 33 PP_GRAPHICS3DATTRIB_WIDTH = 0x3057, |
| 41 | 34 |
| 42 // Specifies the effect on the color buffer of posting a surface | 35 // Specifies the effect on the color buffer of posting a surface |
| 43 // with SwapBuffers. The initial value is chosen by the implementation. | 36 // with SwapBuffers. The initial value is chosen by the implementation. |
| 44 PP_GRAPHICS3DATTRIB_SWAP_BEHAVIOR = 0x3093, | 37 PP_GRAPHICS3DATTRIB_SWAP_BEHAVIOR = 0x3093, |
| 45 // Indicates that color buffer contents are unaffected. | 38 // Indicates that color buffer contents are unaffected. |
| 46 PP_GRAPHICS3DATTRIB_BUFFER_PRESERVED = 0x3094, | 39 PP_GRAPHICS3DATTRIB_BUFFER_PRESERVED = 0x3094, |
| 47 // Indicates that color buffer contents may be destroyed or changed. | 40 // Indicates that color buffer contents may be destroyed or changed. |
| 48 PP_GRAPHICS3DATTRIB_BUFFER_DESTROYED = 0x3095 | 41 PP_GRAPHICS3DATTRIB_BUFFER_DESTROYED = 0x3095 |
| 49 }; | 42 }; |
| 50 | 43 |
| 51 // TODO(alokp): Remove this when PPB_Context3D_Dev and PPB_Surface3D_Dev | 44 // TODO(alokp): Remove this when PPB_Context3D_Dev and PPB_Surface3D_Dev |
| 52 // are deprecated. | 45 // are deprecated. |
| 53 typedef int32_t PP_Config3D_Dev; | 46 typedef int32_t PP_Config3D_Dev; |
| 54 | 47 |
| 55 #endif // PPAPI_C_DEV_PP_GRAPHICS_3D_DEV_H_ | 48 #endif // PPAPI_C_DEV_PP_GRAPHICS_3D_DEV_H_ |
| OLD | NEW |