VirtualBox

source: vbox/trunk/src/VBox/HostServices/SharedOpenGL/HostOGLSimpleAsync.cpp@ 5320

Last change on this file since 5320 was 4753, checked in by vboxsync, 17 years ago

eol

  • Property svn:eol-style set to native
File size: 7.9 KB
Line 
1/** @file
2 *
3 * VBox OpenGL
4 *
5 * Simple buffered OpenGL functions
6 */
7
8/*
9 * Copyright (C) 2006-2007 innotek GmbH
10 *
11 * This file is part of VirtualBox Open Source Edition (OSE), as
12 * available from http://www.virtualbox.org. This file is free software;
13 * you can redistribute it and/or modify it under the terms of the GNU
14 * General Public License as published by the Free Software Foundation,
15 * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
16 * distribution. VirtualBox OSE is distributed in the hope that it will
17 * be useful, but WITHOUT ANY WARRANTY of any kind.
18 */
19
20#include "vboxgl.h"
21
22GL_GEN_FUNC1(ReadBuffer, GLenum)
23
24GL_GEN_VPAR_FUNC5(CopyPixels, GLint, GLint, GLsizei, GLsizei, GLenum)
25
26GL_GEN_FUNC1(Enable, GLenum)
27GL_GEN_FUNC1(Disable, GLenum)
28
29GL_GEN_VPAR_FUNC2(Accum, GLenum, GLfloat)
30GL_GEN_VPAR_FUNC2(AlphaFunc, GLenum, GLclampf)
31GL_GEN_VPAR_FUNC2(BindTexture, GLenum, GLuint)
32
33GL_GEN_FUNC1(ArrayElement, GLint)
34
35GL_GEN_FUNC1(Begin, GLenum)
36GL_GEN_FUNC2(BlendFunc, GLenum)
37
38GL_GEN_FUNC1(CallList, GLuint)
39
40GL_GEN_FUNC3V(Color3b, GLbyte)
41GL_GEN_FUNC3V(Color3d, GLdouble)
42GL_GEN_FUNC3V(Color3f, GLfloat)
43GL_GEN_FUNC3V(Color3i, GLint)
44GL_GEN_FUNC3V(Color3s, GLshort)
45
46GL_GEN_FUNC3V(Color3ub, GLubyte)
47GL_GEN_FUNC3V(Color3ui, GLuint)
48GL_GEN_FUNC3V(Color3us, GLushort)
49
50GL_GEN_FUNC4V(Color4b, GLbyte)
51GL_GEN_FUNC4V(Color4d, GLdouble)
52GL_GEN_FUNC4V(Color4f, GLfloat)
53GL_GEN_FUNC4V(Color4i, GLint)
54GL_GEN_FUNC4V(Color4s, GLshort)
55
56GL_GEN_FUNC4V(Color4ub, GLubyte)
57GL_GEN_FUNC4V(Color4ui, GLuint)
58GL_GEN_FUNC4V(Color4us, GLushort)
59
60GL_GEN_FUNC1(Clear, GLbitfield)
61GL_GEN_FUNC4(ClearAccum, GLfloat)
62GL_GEN_FUNC4(ClearColor, GLclampf)
63GL_GEN_FUNC1(ClearDepth, GLclampd)
64GL_GEN_FUNC1(ClearIndex, GLfloat)
65GL_GEN_FUNC1(ClearStencil, GLint)
66
67GL_GEN_FUNC2V(Vertex2d, GLdouble)
68GL_GEN_FUNC2V(Vertex2f, GLfloat)
69GL_GEN_FUNC2V(Vertex2i, GLint)
70GL_GEN_FUNC2V(Vertex2s, GLshort)
71
72GL_GEN_FUNC3V(Vertex3d, GLdouble)
73GL_GEN_FUNC3V(Vertex3f, GLfloat)
74GL_GEN_FUNC3V(Vertex3i, GLint)
75GL_GEN_FUNC3V(Vertex3s, GLshort)
76
77GL_GEN_FUNC4V(Vertex4d, GLdouble)
78GL_GEN_FUNC4V(Vertex4f, GLfloat)
79GL_GEN_FUNC4V(Vertex4i, GLint)
80GL_GEN_FUNC4V(Vertex4s, GLshort)
81
82GL_GEN_FUNC1V(TexCoord1d, GLdouble)
83GL_GEN_FUNC1V(TexCoord1f, GLfloat)
84GL_GEN_FUNC1V(TexCoord1i, GLint)
85GL_GEN_FUNC1V(TexCoord1s, GLshort)
86
87GL_GEN_FUNC2V(TexCoord2d, GLdouble)
88GL_GEN_FUNC2V(TexCoord2f, GLfloat)
89GL_GEN_FUNC2V(TexCoord2i, GLint)
90GL_GEN_FUNC2V(TexCoord2s, GLshort)
91
92GL_GEN_FUNC3V(TexCoord3d, GLdouble)
93GL_GEN_FUNC3V(TexCoord3f, GLfloat)
94GL_GEN_FUNC3V(TexCoord3i, GLint)
95GL_GEN_FUNC3V(TexCoord3s, GLshort)
96
97GL_GEN_FUNC4V(TexCoord4d, GLdouble)
98GL_GEN_FUNC4V(TexCoord4f, GLfloat)
99GL_GEN_FUNC4V(TexCoord4i, GLint)
100GL_GEN_FUNC4V(TexCoord4s, GLshort)
101
102GL_GEN_FUNC3V(Normal3b, GLbyte)
103GL_GEN_FUNC3V(Normal3d, GLdouble)
104GL_GEN_FUNC3V(Normal3f, GLfloat)
105GL_GEN_FUNC3V(Normal3i, GLint)
106GL_GEN_FUNC3V(Normal3s, GLshort)
107
108GL_GEN_FUNC2V(RasterPos2d, GLdouble)
109GL_GEN_FUNC2V(RasterPos2f, GLfloat)
110GL_GEN_FUNC2V(RasterPos2i, GLint)
111GL_GEN_FUNC2V(RasterPos2s, GLshort)
112
113GL_GEN_FUNC3V(RasterPos3d, GLdouble)
114GL_GEN_FUNC3V(RasterPos3f, GLfloat)
115GL_GEN_FUNC3V(RasterPos3i, GLint)
116GL_GEN_FUNC3V(RasterPos3s, GLshort)
117
118GL_GEN_FUNC4V(RasterPos4d, GLdouble)
119GL_GEN_FUNC4V(RasterPos4f, GLfloat)
120GL_GEN_FUNC4V(RasterPos4i, GLint)
121GL_GEN_FUNC4V(RasterPos4s, GLshort)
122
123GL_GEN_FUNC1V(EvalCoord1d, GLdouble)
124GL_GEN_FUNC1V(EvalCoord1f, GLfloat)
125
126GL_GEN_FUNC2V(EvalCoord2d, GLdouble)
127GL_GEN_FUNC2V(EvalCoord2f, GLfloat)
128
129GL_GEN_FUNC1(EvalPoint1, GLint)
130GL_GEN_FUNC2(EvalPoint2, GLint)
131
132GL_GEN_FUNC1V(Indexd, GLdouble)
133GL_GEN_FUNC1V(Indexf, GLfloat)
134GL_GEN_FUNC1V(Indexi, GLint)
135GL_GEN_FUNC1V(Indexs, GLshort)
136GL_GEN_FUNC1V(Indexub, GLubyte)
137
138GL_GEN_FUNC4(Rotated, GLdouble)
139GL_GEN_FUNC4(Rotatef, GLfloat)
140
141GL_GEN_FUNC3(Scaled, GLdouble)
142GL_GEN_FUNC3(Scalef, GLfloat)
143
144GL_GEN_FUNC3(Translated, GLdouble)
145GL_GEN_FUNC3(Translatef, GLfloat)
146
147GL_GEN_FUNC1(DepthFunc, GLenum)
148GL_GEN_FUNC1(DepthMask, GLboolean)
149
150GL_GEN_FUNC1(CullFace, GLenum)
151
152GL_GEN_VPAR_FUNC2(DeleteLists, GLuint, GLsizei)
153
154GL_GEN_VPAR_FUNC2(DepthRange, GLclampd, GLclampd)
155GL_GEN_FUNC1(DisableClientState, GLenum)
156GL_GEN_FUNC1(EnableClientState, GLenum)
157GL_GEN_VPAR_FUNC3(EvalMesh1, GLenum, GLint, GLint)
158GL_GEN_VPAR_FUNC5(EvalMesh2, GLenum, GLint, GLint, GLint, GLint)
159GL_GEN_VPAR_FUNC2(LineStipple, GLint, GLushort)
160GL_GEN_FUNC1(LineWidth, GLfloat)
161GL_GEN_FUNC1(ListBase, GLuint)
162
163GL_GEN_VPAR_FUNC2(Fogf, GLenum, GLfloat)
164GL_GEN_VPAR_FUNC2(Fogi, GLenum, GLint)
165
166
167GL_GEN_VPAR_FUNC2(LightModelf, GLenum, GLfloat)
168GL_GEN_VPAR_FUNC2(LightModeli, GLenum, GLint)
169
170
171GL_GEN_VPAR_FUNC3(Lightf, GLenum, GLenum, GLfloat)
172GL_GEN_VPAR_FUNC3(Lighti, GLenum, GLenum, GLint)
173
174
175GL_GEN_VPAR_FUNC3(DrawArrays, GLenum, GLint, GLsizei)
176
177GL_GEN_FUNC1(DrawBuffer, GLenum)
178
179GL_GEN_FUNC1V(EdgeFlag, GLboolean)
180
181GL_GEN_FUNC(End)
182GL_GEN_FUNC(EndList)
183
184GL_GEN_FUNC1(FrontFace, GLenum)
185
186
187GL_GEN_VPAR_FUNC7(CopyTexImage1D, GLenum , GLint , GLenum , GLint , GLint , GLsizei , GLint )
188
189GL_GEN_VPAR_FUNC8(CopyTexImage2D, GLenum , GLint , GLenum , GLint , GLint , GLsizei , GLsizei , GLint )
190
191GL_GEN_VPAR_FUNC6(CopyTexSubImage1D, GLenum , GLint , GLint , GLint , GLint , GLsizei )
192
193GL_GEN_VPAR_FUNC8(CopyTexSubImage2D, GLenum , GLint , GLint , GLint , GLint , GLint , GLsizei , GLsizei )
194
195GL_GEN_VPAR_FUNC4(ColorMask, GLboolean , GLboolean , GLboolean , GLboolean )
196
197GL_GEN_VPAR_FUNC2(ColorMaterial, GLenum, GLenum )
198
199GL_GEN_FUNC1(LogicOp, GLenum)
200
201GL_GEN_VPAR_FUNC3(MapGrid1d, GLint, GLdouble, GLdouble)
202GL_GEN_VPAR_FUNC3(MapGrid1f, GLint, GLfloat, GLfloat)
203
204GL_GEN_VPAR_FUNC6(MapGrid2d, GLint , GLdouble , GLdouble , GLint , GLdouble , GLdouble )
205
206GL_GEN_VPAR_FUNC6(MapGrid2f, GLint , GLfloat , GLfloat , GLint , GLfloat , GLfloat )
207
208GL_GEN_VPAR_FUNC3(Materialf, GLenum , GLenum , GLfloat )
209
210GL_GEN_VPAR_FUNC3(Materiali, GLenum , GLenum , GLint )
211
212GL_GEN_FUNC1(MatrixMode, GLenum)
213
214GL_GEN_VPAR_FUNC6(Ortho, GLdouble , GLdouble , GLdouble , GLdouble , GLdouble , GLdouble )
215
216GL_GEN_FUNC1(PassThrough, GLfloat)
217
218GL_GEN_VPAR_FUNC2(PixelStoref, GLenum, GLfloat)
219GL_GEN_VPAR_FUNC2(PixelStorei, GLenum, GLint)
220GL_GEN_VPAR_FUNC2(PixelTransferf, GLenum, GLfloat)
221GL_GEN_VPAR_FUNC2(PixelTransferi, GLenum, GLint)
222
223GL_GEN_FUNC2(PixelZoom, GLfloat)
224GL_GEN_FUNC1(PointSize, GLfloat)
225
226GL_GEN_FUNC2(PolygonMode, GLenum)
227GL_GEN_FUNC2(PolygonOffset, GLfloat)
228
229GL_GEN_FUNC(PopAttrib)
230GL_GEN_FUNC(PopClientAttrib)
231GL_GEN_FUNC(PopMatrix)
232GL_GEN_FUNC(PopName)
233
234
235GL_GEN_FUNC1(PushAttrib, GLbitfield)
236GL_GEN_FUNC1(PushClientAttrib, GLbitfield)
237GL_GEN_FUNC (PushMatrix)
238GL_GEN_FUNC1(PushName, GLuint)
239
240GL_GEN_VPAR_FUNC3(TexEnvf, GLenum , GLenum , GLfloat)
241GL_GEN_VPAR_FUNC3(TexEnvi, GLenum , GLenum , GLint)
242GL_GEN_VPAR_FUNC3(TexGend, GLenum , GLenum , GLdouble)
243GL_GEN_VPAR_FUNC3(TexGenf, GLenum , GLenum , GLfloat)
244GL_GEN_VPAR_FUNC3(TexGeni, GLenum , GLenum , GLint)
245
246GL_GEN_VPAR_FUNC3(TexParameterf, GLenum , GLenum , GLfloat )
247GL_GEN_VPAR_FUNC3(TexParameteri, GLenum , GLenum , GLint )
248
249GL_GEN_FUNC (LoadIdentity)
250GL_GEN_FUNC1(LoadName, GLuint)
251
252GL_GEN_FUNC1(ShadeModel, GLenum)
253GL_GEN_VPAR_FUNC3(StencilFunc, GLenum, GLint, GLuint)
254GL_GEN_FUNC1(StencilMask, GLuint)
255GL_GEN_VPAR_FUNC3(StencilOp, GLenum, GLenum, GLenum)
256
257GL_GEN_VPAR_FUNC4(Viewport, GLint, GLint, GLsizei, GLsizei)
258GL_GEN_VPAR_FUNC4(Scissor, GLint, GLint, GLsizei, GLsizei)
259
260
261GL_GEN_FUNC4(Rectd, GLdouble)
262GL_GEN_FUNC4(Rectf, GLfloat)
263GL_GEN_FUNC4(Recti, GLint)
264GL_GEN_FUNC4(Rects, GLshort)
265
266GL_GEN_VPAR_FUNC2(NewList, GLuint, GLenum)
267
268GL_GEN_FUNC2(Hint, GLenum)
269GL_GEN_FUNC1(IndexMask, GLuint)
270GL_GEN_FUNC(InitNames)
271
272
273GL_GEN_FUNC6(Frustum, GLdouble)
274
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette