1 | /** @file
|
---|
2 | *
|
---|
3 | * VBox OpenGL
|
---|
4 | *
|
---|
5 | * Complex buffered OpenGL functions
|
---|
6 | *
|
---|
7 | * Copyright (C) 2006-2007 innotek GmbH
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | * available from http://www.virtualbox.org. This file is free software;
|
---|
11 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | * General Public License as published by the Free Software Foundation,
|
---|
13 | * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
|
---|
14 | * distribution. VirtualBox OSE is distributed in the hope that it will
|
---|
15 | * be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | *
|
---|
17 | * If you received this file as part of a commercial VirtualBox
|
---|
18 | * distribution, then only the terms of your commercial VirtualBox
|
---|
19 | * license agreement apply instead of the previous paragraph.
|
---|
20 | *
|
---|
21 | */
|
---|
22 |
|
---|
23 | #include "vboxgl.h"
|
---|
24 |
|
---|
25 | void vboxglFogfv(VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
26 | {
|
---|
27 | VBOX_OGL_GEN_OP2PTR(Fogfv, GLenum, GLfloat);
|
---|
28 | }
|
---|
29 |
|
---|
30 | void vboxglFogiv(VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
31 | {
|
---|
32 | VBOX_OGL_GEN_OP2PTR(Fogiv, GLenum, GLint);
|
---|
33 | }
|
---|
34 |
|
---|
35 | void vboxglLightModelfv(VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
36 | {
|
---|
37 | VBOX_OGL_GEN_OP2PTR(LightModelfv, GLenum, GLfloat);
|
---|
38 | }
|
---|
39 |
|
---|
40 | void vboxglLightModeliv(VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
41 | {
|
---|
42 | VBOX_OGL_GEN_OP2PTR(LightModeliv, GLenum, GLint);
|
---|
43 | }
|
---|
44 |
|
---|
45 | void vboxglLightfv(VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
46 | {
|
---|
47 | VBOX_OGL_GEN_OP3PTR(Lightfv, GLenum, GLenum, GLfloat);
|
---|
48 | }
|
---|
49 |
|
---|
50 | void vboxglLightiv(VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
51 | {
|
---|
52 | VBOX_OGL_GEN_OP3PTR(Lightiv, GLenum, GLenum, GLint);
|
---|
53 | }
|
---|
54 |
|
---|
55 | void vboxglMaterialfv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
56 | {
|
---|
57 | VBOX_OGL_GEN_OP3PTR(Materialfv, GLenum, GLenum, GLfloat);
|
---|
58 | }
|
---|
59 |
|
---|
60 | void vboxglMaterialiv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
61 | {
|
---|
62 | VBOX_OGL_GEN_OP3PTR(Materialiv, GLenum, GLenum, GLint);
|
---|
63 | }
|
---|
64 |
|
---|
65 | void vboxglPixelMapfv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
66 | {
|
---|
67 | VBOX_OGL_GEN_OP3PTR(PixelMapfv, GLenum, GLsizei, GLfloat);
|
---|
68 | }
|
---|
69 |
|
---|
70 | void vboxglPixelMapuiv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
71 | {
|
---|
72 | VBOX_OGL_GEN_OP3PTR(PixelMapuiv, GLenum, GLsizei, GLuint);
|
---|
73 | }
|
---|
74 |
|
---|
75 | void vboxglPixelMapusv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
76 | {
|
---|
77 | VBOX_OGL_GEN_OP3PTR(PixelMapusv, GLenum, GLsizei, GLushort);
|
---|
78 | }
|
---|
79 |
|
---|
80 | void vboxglDeleteTextures(VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
81 | {
|
---|
82 | VBOX_OGL_GEN_OP2PTR(DeleteTextures, GLsizei, GLuint);
|
---|
83 | }
|
---|
84 |
|
---|
85 | void vboxglTexEnviv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
86 | {
|
---|
87 | VBOX_OGL_GEN_OP3PTR(TexEnviv, GLenum, GLenum, GLint);
|
---|
88 | }
|
---|
89 |
|
---|
90 | void vboxglTexEnvfv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
91 | {
|
---|
92 | VBOX_OGL_GEN_OP3PTR(TexEnvfv, GLenum, GLenum, GLfloat);
|
---|
93 | }
|
---|
94 |
|
---|
95 | void vboxglTexGendv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
96 | {
|
---|
97 | VBOX_OGL_GEN_OP3PTR(TexGendv, GLenum, GLenum, GLdouble);
|
---|
98 | }
|
---|
99 |
|
---|
100 | void vboxglTexGenfv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
101 | {
|
---|
102 | VBOX_OGL_GEN_OP3PTR(TexGenfv, GLenum, GLenum, GLfloat);
|
---|
103 | }
|
---|
104 |
|
---|
105 | void vboxglTexGeniv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
106 | {
|
---|
107 | VBOX_OGL_GEN_OP3PTR(TexGeniv, GLenum, GLenum, GLint);
|
---|
108 | }
|
---|
109 |
|
---|
110 | void vboxglTexParameterfv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
111 | {
|
---|
112 | VBOX_OGL_GEN_OP3PTR(TexParameterfv, GLenum, GLenum, GLfloat);
|
---|
113 | }
|
---|
114 |
|
---|
115 |
|
---|
116 | void vboxglTexParameteriv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
117 | {
|
---|
118 | VBOX_OGL_GEN_OP3PTR(TexParameteriv, GLenum, GLenum, GLint);
|
---|
119 | }
|
---|
120 |
|
---|
121 | void vboxglLoadMatrixd (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
122 | {
|
---|
123 | VBOX_OGL_GEN_OP1PTR(LoadMatrixd, GLdouble);
|
---|
124 | }
|
---|
125 |
|
---|
126 | void vboxglLoadMatrixf (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
127 | {
|
---|
128 | VBOX_OGL_GEN_OP1PTR(LoadMatrixf, GLfloat);
|
---|
129 | }
|
---|
130 |
|
---|
131 |
|
---|
132 | void vboxglMultMatrixd (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
133 | {
|
---|
134 | VBOX_OGL_GEN_OP1PTR(MultMatrixd, GLdouble);
|
---|
135 | }
|
---|
136 |
|
---|
137 | void vboxglMultMatrixf (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
138 | {
|
---|
139 | VBOX_OGL_GEN_OP1PTR(MultMatrixf, GLfloat);
|
---|
140 | }
|
---|
141 |
|
---|
142 | void vboxglPolygonStipple (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
143 | {
|
---|
144 | VBOX_OGL_GEN_OP1PTR(PolygonStipple, GLubyte);
|
---|
145 | }
|
---|
146 |
|
---|
147 | void vboxglClipPlane (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
148 | {
|
---|
149 | VBOX_OGL_GEN_OP2PTR(ClipPlane, GLenum, GLdouble);
|
---|
150 | }
|
---|
151 |
|
---|
152 | /** @todo might not work as the caller could change the array contents afterwards */
|
---|
153 | void vboxglVertexPointer (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
154 | {
|
---|
155 | VBOX_OGL_GEN_OP4PTR(VertexPointer, GLint, GLenum, GLsizei, GLvoid);
|
---|
156 | }
|
---|
157 |
|
---|
158 | /** @todo might not work as the caller could change the array contents afterwards */
|
---|
159 | void vboxglTexCoordPointer (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
160 | {
|
---|
161 | VBOX_OGL_GEN_OP4PTR(TexCoordPointer, GLint, GLenum, GLsizei, GLvoid);
|
---|
162 | return;
|
---|
163 | }
|
---|
164 |
|
---|
165 | /** @todo might not work as the caller could change the array contents afterwards */
|
---|
166 | void vboxglColorPointer (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
167 | {
|
---|
168 | VBOX_OGL_GEN_OP4PTR(ColorPointer, GLint, GLenum, GLsizei, GLvoid);
|
---|
169 | }
|
---|
170 |
|
---|
171 | /** @todo might not work as the caller could change the array contents afterwards */
|
---|
172 | void vboxglEdgeFlagPointer (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
173 | {
|
---|
174 | VBOX_OGL_GEN_OP2PTR(EdgeFlagPointer, GLsizei, GLvoid);
|
---|
175 | }
|
---|
176 |
|
---|
177 | /** @todo might not work as the caller could change the array contents afterwards */
|
---|
178 | void vboxglIndexPointer (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
179 | {
|
---|
180 | VBOX_OGL_GEN_OP3PTR(IndexPointer, GLenum, GLsizei, GLvoid);
|
---|
181 | }
|
---|
182 |
|
---|
183 | /** @todo might not work as the caller could change the array contents afterwards */
|
---|
184 | void vboxglNormalPointer (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
185 | {
|
---|
186 | VBOX_OGL_GEN_OP3PTR(NormalPointer, GLenum, GLsizei, GLvoid);
|
---|
187 | }
|
---|
188 |
|
---|
189 | void vboxglCallLists (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
190 | {
|
---|
191 | VBOX_OGL_GEN_OP3PTR(CallLists, GLsizei, GLenum, GLvoid);
|
---|
192 | }
|
---|
193 |
|
---|
194 | void vboxglMap1d (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
195 | {
|
---|
196 |
|
---|
197 | VBOX_OGL_GEN_OP6PTR(Map1d, GLenum, GLdouble, GLdouble, GLint, GLint, GLdouble);
|
---|
198 | }
|
---|
199 |
|
---|
200 | void vboxglMap1f(VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
201 | {
|
---|
202 | VBOX_OGL_GEN_OP6PTR(Map1f, GLenum, GLfloat, GLfloat, GLint, GLint, GLfloat);
|
---|
203 | }
|
---|
204 |
|
---|
205 | void vboxglMap2d (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
206 | {
|
---|
207 | VBOX_OGL_GEN_OP10PTR(Map2d, GLenum, GLdouble, GLdouble, GLint, GLint, GLdouble, GLdouble, GLint, GLint, GLdouble);
|
---|
208 | }
|
---|
209 |
|
---|
210 | void vboxglMap2f (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
211 | {
|
---|
212 | VBOX_OGL_GEN_OP10PTR(Map2f, GLenum, GLfloat, GLfloat, GLint, GLint, GLfloat, GLfloat, GLint, GLint, GLfloat);
|
---|
213 | }
|
---|
214 |
|
---|
215 | void vboxglTexImage1D (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
216 | {
|
---|
217 | VBOX_OGL_GEN_OP8PTR(TexImage1D, GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, GLvoid);
|
---|
218 | }
|
---|
219 |
|
---|
220 | void vboxglTexImage2D (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
221 | {
|
---|
222 | VBOX_OGL_GEN_OP9PTR(TexImage2D, GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, GLvoid);
|
---|
223 | }
|
---|
224 |
|
---|
225 |
|
---|
226 | void vboxglTexSubImage1D (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
227 | {
|
---|
228 | VBOX_OGL_GEN_OP7PTR(TexSubImage1D, GLenum, GLint, GLint, GLsizei, GLenum, GLenum, GLvoid)
|
---|
229 | }
|
---|
230 |
|
---|
231 | void vboxglTexSubImage2D (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
232 | {
|
---|
233 | VBOX_OGL_GEN_OP9PTR(TexSubImage2D, GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid);
|
---|
234 | }
|
---|
235 |
|
---|
236 | void vboxglPrioritizeTextures (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
237 | {
|
---|
238 | VBOX_OGL_GEN_OP3PTRPTR(PrioritizeTextures, GLsizei, GLuint, GLclampf);
|
---|
239 | }
|
---|
240 |
|
---|
241 |
|
---|
242 | void vboxglRectdv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
243 | {
|
---|
244 | VBOX_OGL_GEN_OP2PTRPTR(Rectdv, GLdouble, GLdouble);
|
---|
245 | }
|
---|
246 |
|
---|
247 | void vboxglRectfv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
248 | {
|
---|
249 | VBOX_OGL_GEN_OP2PTRPTR(Rectfv, GLfloat, GLfloat);
|
---|
250 | }
|
---|
251 |
|
---|
252 | void vboxglRectiv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
253 | {
|
---|
254 | VBOX_OGL_GEN_OP2PTRPTR(Rectiv, GLint, GLint);
|
---|
255 | }
|
---|
256 |
|
---|
257 | void vboxglRectsv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
258 | {
|
---|
259 | VBOX_OGL_GEN_OP2PTRPTR(Rectsv, GLshort, GLshort);
|
---|
260 | }
|
---|