Add ICU message format support
[chromium-blink-merge.git] / ui / gl / gl_bindings_autogen_osmesa.h
blob8a6bb6699a0804fc79a2143ba15cf6527c8eda00
1 // Copyright 2014 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 // This file is auto-generated from
6 // ui/gl/generate_bindings.py
7 // It's formatted by clang-format using chromium coding style:
8 // clang-format -i -style=chromium filename
9 // DO NOT EDIT!
11 #ifndef UI_GFX_GL_GL_BINDINGS_AUTOGEN_OSMESA_H_
12 #define UI_GFX_GL_GL_BINDINGS_AUTOGEN_OSMESA_H_
14 namespace gfx {
16 class GLContext;
18 typedef void(GL_BINDING_CALL* OSMesaColorClampProc)(GLboolean enable);
19 typedef OSMesaContext(GL_BINDING_CALL* OSMesaCreateContextProc)(
20 GLenum format,
21 OSMesaContext sharelist);
22 typedef OSMesaContext(GL_BINDING_CALL* OSMesaCreateContextExtProc)(
23 GLenum format,
24 GLint depthBits,
25 GLint stencilBits,
26 GLint accumBits,
27 OSMesaContext sharelist);
28 typedef void(GL_BINDING_CALL* OSMesaDestroyContextProc)(OSMesaContext ctx);
29 typedef GLboolean(GL_BINDING_CALL* OSMesaGetColorBufferProc)(OSMesaContext c,
30 GLint* width,
31 GLint* height,
32 GLint* format,
33 void** buffer);
34 typedef OSMesaContext(GL_BINDING_CALL* OSMesaGetCurrentContextProc)(void);
35 typedef GLboolean(GL_BINDING_CALL* OSMesaGetDepthBufferProc)(
36 OSMesaContext c,
37 GLint* width,
38 GLint* height,
39 GLint* bytesPerValue,
40 void** buffer);
41 typedef void(GL_BINDING_CALL* OSMesaGetIntegervProc)(GLint pname, GLint* value);
42 typedef OSMESAproc(GL_BINDING_CALL* OSMesaGetProcAddressProc)(
43 const char* funcName);
44 typedef GLboolean(GL_BINDING_CALL* OSMesaMakeCurrentProc)(OSMesaContext ctx,
45 void* buffer,
46 GLenum type,
47 GLsizei width,
48 GLsizei height);
49 typedef void(GL_BINDING_CALL* OSMesaPixelStoreProc)(GLint pname, GLint value);
51 struct ExtensionsOSMESA {};
53 struct ProcsOSMESA {
54 OSMesaColorClampProc OSMesaColorClampFn;
55 OSMesaCreateContextProc OSMesaCreateContextFn;
56 OSMesaCreateContextExtProc OSMesaCreateContextExtFn;
57 OSMesaDestroyContextProc OSMesaDestroyContextFn;
58 OSMesaGetColorBufferProc OSMesaGetColorBufferFn;
59 OSMesaGetCurrentContextProc OSMesaGetCurrentContextFn;
60 OSMesaGetDepthBufferProc OSMesaGetDepthBufferFn;
61 OSMesaGetIntegervProc OSMesaGetIntegervFn;
62 OSMesaGetProcAddressProc OSMesaGetProcAddressFn;
63 OSMesaMakeCurrentProc OSMesaMakeCurrentFn;
64 OSMesaPixelStoreProc OSMesaPixelStoreFn;
67 class GL_EXPORT OSMESAApi {
68 public:
69 OSMESAApi();
70 virtual ~OSMESAApi();
72 virtual void OSMesaColorClampFn(GLboolean enable) = 0;
73 virtual OSMesaContext OSMesaCreateContextFn(GLenum format,
74 OSMesaContext sharelist) = 0;
75 virtual OSMesaContext OSMesaCreateContextExtFn(GLenum format,
76 GLint depthBits,
77 GLint stencilBits,
78 GLint accumBits,
79 OSMesaContext sharelist) = 0;
80 virtual void OSMesaDestroyContextFn(OSMesaContext ctx) = 0;
81 virtual GLboolean OSMesaGetColorBufferFn(OSMesaContext c,
82 GLint* width,
83 GLint* height,
84 GLint* format,
85 void** buffer) = 0;
86 virtual OSMesaContext OSMesaGetCurrentContextFn(void) = 0;
87 virtual GLboolean OSMesaGetDepthBufferFn(OSMesaContext c,
88 GLint* width,
89 GLint* height,
90 GLint* bytesPerValue,
91 void** buffer) = 0;
92 virtual void OSMesaGetIntegervFn(GLint pname, GLint* value) = 0;
93 virtual OSMESAproc OSMesaGetProcAddressFn(const char* funcName) = 0;
94 virtual GLboolean OSMesaMakeCurrentFn(OSMesaContext ctx,
95 void* buffer,
96 GLenum type,
97 GLsizei width,
98 GLsizei height) = 0;
99 virtual void OSMesaPixelStoreFn(GLint pname, GLint value) = 0;
102 } // namespace gfx
104 #define OSMesaColorClamp ::gfx::g_current_osmesa_context->OSMesaColorClampFn
105 #define OSMesaCreateContext \
106 ::gfx::g_current_osmesa_context->OSMesaCreateContextFn
107 #define OSMesaCreateContextExt \
108 ::gfx::g_current_osmesa_context->OSMesaCreateContextExtFn
109 #define OSMesaDestroyContext \
110 ::gfx::g_current_osmesa_context->OSMesaDestroyContextFn
111 #define OSMesaGetColorBuffer \
112 ::gfx::g_current_osmesa_context->OSMesaGetColorBufferFn
113 #define OSMesaGetCurrentContext \
114 ::gfx::g_current_osmesa_context->OSMesaGetCurrentContextFn
115 #define OSMesaGetDepthBuffer \
116 ::gfx::g_current_osmesa_context->OSMesaGetDepthBufferFn
117 #define OSMesaGetIntegerv ::gfx::g_current_osmesa_context->OSMesaGetIntegervFn
118 #define OSMesaGetProcAddress \
119 ::gfx::g_current_osmesa_context->OSMesaGetProcAddressFn
120 #define OSMesaMakeCurrent ::gfx::g_current_osmesa_context->OSMesaMakeCurrentFn
121 #define OSMesaPixelStore ::gfx::g_current_osmesa_context->OSMesaPixelStoreFn
123 #endif // UI_GFX_GL_GL_BINDINGS_AUTOGEN_OSMESA_H_