Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(346)

Side by Side Diff: ppapi/c/pp_graphics_3d.h

Issue 8676042: Remove Context3D/Surface3D (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: style Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/c/dev/ppb_video_layer_dev.h ('k') | ppapi/c/private/ppb_flash_fullscreen.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 /* From pp_graphics_3d.idl modified Tue Nov 29 12:56:32 2011. */
7
6 #ifndef PPAPI_C_PP_GRAPHICS_3D_H_ 8 #ifndef PPAPI_C_PP_GRAPHICS_3D_H_
7 #define PPAPI_C_PP_GRAPHICS_3D_H_ 9 #define PPAPI_C_PP_GRAPHICS_3D_H_
8 10
9 #include "ppapi/c/pp_stdint.h" 11 #include "ppapi/c/pp_macros.h"
10 12
11 enum PP_Graphics3DAttrib { 13 /**
12 // Bits of Alpha in the color buffer. 14 * @file
15 * This file defines the <code>PP_Graphics3DAttrib</code> enumeration for use in
16 * PPAPI C headers.
17 */
18
19
20 /**
21 * @addtogroup Enums
22 * @{
23 */
24 typedef enum {
25 /**
26 * Bits of Alpha in the color buffer.
27 */
13 PP_GRAPHICS3DATTRIB_ALPHA_SIZE = 0x3021, 28 PP_GRAPHICS3DATTRIB_ALPHA_SIZE = 0x3021,
14 // Bits of Blue in the color buffer. 29 /**
30 * Bits of Blue in the color buffer.
31 */
15 PP_GRAPHICS3DATTRIB_BLUE_SIZE = 0x3022, 32 PP_GRAPHICS3DATTRIB_BLUE_SIZE = 0x3022,
16 // Bits of Green in the color buffer. 33 /**
34 * Bits of Green in the color buffer.
35 */
17 PP_GRAPHICS3DATTRIB_GREEN_SIZE = 0x3023, 36 PP_GRAPHICS3DATTRIB_GREEN_SIZE = 0x3023,
18 // Bits of Red in the color buffer. 37 /**
38 * Bits of Red in the color buffer.
39 */
19 PP_GRAPHICS3DATTRIB_RED_SIZE = 0x3024, 40 PP_GRAPHICS3DATTRIB_RED_SIZE = 0x3024,
20 // Bits of Z in the depth buffer. 41 /**
42 * Bits of Z in the depth buffer.
43 */
21 PP_GRAPHICS3DATTRIB_DEPTH_SIZE = 0x3025, 44 PP_GRAPHICS3DATTRIB_DEPTH_SIZE = 0x3025,
22 // Bits of Stencil in the stencil buffer. 45 /**
46 * Bits of Stencil in the stencil buffer.
47 */
23 PP_GRAPHICS3DATTRIB_STENCIL_SIZE = 0x3026, 48 PP_GRAPHICS3DATTRIB_STENCIL_SIZE = 0x3026,
24 // Number of samples per pixel. 49 /**
50 * Number of samples per pixel.
51 */
25 PP_GRAPHICS3DATTRIB_SAMPLES = 0x3031, 52 PP_GRAPHICS3DATTRIB_SAMPLES = 0x3031,
26 // Number of multisample buffers. 53 /**
54 * Number of multisample buffers.
55 */
27 PP_GRAPHICS3DATTRIB_SAMPLE_BUFFERS = 0x3032, 56 PP_GRAPHICS3DATTRIB_SAMPLE_BUFFERS = 0x3032,
28 // Attrib list terminator. 57 /**
58 * Attrib list terminator.
59 */
29 PP_GRAPHICS3DATTRIB_NONE = 0x3038, 60 PP_GRAPHICS3DATTRIB_NONE = 0x3038,
30 // Height of surface in pixels. 61 /**
62 * Height of surface in pixels.
63 */
31 PP_GRAPHICS3DATTRIB_HEIGHT = 0x3056, 64 PP_GRAPHICS3DATTRIB_HEIGHT = 0x3056,
32 // Width of surface in pixels. 65 /**
66 * Width of surface in pixels.
67 */
33 PP_GRAPHICS3DATTRIB_WIDTH = 0x3057, 68 PP_GRAPHICS3DATTRIB_WIDTH = 0x3057,
69 /**
70 * Specifies the effect on the color buffer of posting a surface
71 * with SwapBuffers. The initial value is chosen by the implementation.
72 */
73 PP_GRAPHICS3DATTRIB_SWAP_BEHAVIOR = 0x3093,
74 /**
75 * Indicates that color buffer contents are unaffected.
76 */
77 PP_GRAPHICS3DATTRIB_BUFFER_PRESERVED = 0x3094,
78 /**
79 * Indicates that color buffer contents may be destroyed or changed.
80 */
81 PP_GRAPHICS3DATTRIB_BUFFER_DESTROYED = 0x3095
82 } PP_Graphics3DAttrib;
83 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_Graphics3DAttrib, 4);
84 /**
85 * @}
86 */
34 87
35 // Specifies the effect on the color buffer of posting a surface 88 #endif /* PPAPI_C_PP_GRAPHICS_3D_H_ */
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 89
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_PP_GRAPHICS_3D_H_
OLDNEW
« no previous file with comments | « ppapi/c/dev/ppb_video_layer_dev.h ('k') | ppapi/c/private/ppb_flash_fullscreen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698