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.
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
11 #ifndef UI_GFX_GL_GL_BINDINGS_AUTOGEN_OSMESA_H_
12 #define UI_GFX_GL_GL_BINDINGS_AUTOGEN_OSMESA_H_
18 typedef void(GL_BINDING_CALL
* OSMesaColorClampProc
)(GLboolean enable
);
19 typedef OSMesaContext(GL_BINDING_CALL
* OSMesaCreateContextProc
)(
21 OSMesaContext sharelist
);
22 typedef OSMesaContext(GL_BINDING_CALL
* OSMesaCreateContextExtProc
)(
27 OSMesaContext sharelist
);
28 typedef void(GL_BINDING_CALL
* OSMesaDestroyContextProc
)(OSMesaContext ctx
);
29 typedef GLboolean(GL_BINDING_CALL
* OSMesaGetColorBufferProc
)(OSMesaContext c
,
34 typedef OSMesaContext(GL_BINDING_CALL
* OSMesaGetCurrentContextProc
)(void);
35 typedef GLboolean(GL_BINDING_CALL
* OSMesaGetDepthBufferProc
)(
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
,
49 typedef void(GL_BINDING_CALL
* OSMesaPixelStoreProc
)(GLint pname
, GLint value
);
51 struct ExtensionsOSMESA
{};
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
{
72 virtual void OSMesaColorClampFn(GLboolean enable
) = 0;
73 virtual OSMesaContext
OSMesaCreateContextFn(GLenum format
,
74 OSMesaContext sharelist
) = 0;
75 virtual OSMesaContext
OSMesaCreateContextExtFn(GLenum format
,
79 OSMesaContext sharelist
) = 0;
80 virtual void OSMesaDestroyContextFn(OSMesaContext ctx
) = 0;
81 virtual GLboolean
OSMesaGetColorBufferFn(OSMesaContext c
,
86 virtual OSMesaContext
OSMesaGetCurrentContextFn(void) = 0;
87 virtual GLboolean
OSMesaGetDepthBufferFn(OSMesaContext c
,
92 virtual void OSMesaGetIntegervFn(GLint pname
, GLint
* value
) = 0;
93 virtual OSMESAproc
OSMesaGetProcAddressFn(const char* funcName
) = 0;
94 virtual GLboolean
OSMesaMakeCurrentFn(OSMesaContext ctx
,
99 virtual void OSMesaPixelStoreFn(GLint pname
, GLint value
) = 0;
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_