VirtualBox

source: vbox/trunk/src/VBox/HostServices/SharedOpenGL/HostOGLComplexAsync.cpp@ 3338

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

Export HostServices

File size: 7.6 KB
Line 
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
25void vboxglFogfv(VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
26{
27 VBOX_OGL_GEN_OP2PTR(Fogfv, GLenum, GLfloat);
28}
29
30void vboxglFogiv(VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
31{
32 VBOX_OGL_GEN_OP2PTR(Fogiv, GLenum, GLint);
33}
34
35void vboxglLightModelfv(VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
36{
37 VBOX_OGL_GEN_OP2PTR(LightModelfv, GLenum, GLfloat);
38}
39
40void vboxglLightModeliv(VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
41{
42 VBOX_OGL_GEN_OP2PTR(LightModeliv, GLenum, GLint);
43}
44
45void vboxglLightfv(VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
46{
47 VBOX_OGL_GEN_OP3PTR(Lightfv, GLenum, GLenum, GLfloat);
48}
49
50void vboxglLightiv(VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
51{
52 VBOX_OGL_GEN_OP3PTR(Lightiv, GLenum, GLenum, GLint);
53}
54
55void vboxglMaterialfv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
56{
57 VBOX_OGL_GEN_OP3PTR(Materialfv, GLenum, GLenum, GLfloat);
58}
59
60void vboxglMaterialiv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
61{
62 VBOX_OGL_GEN_OP3PTR(Materialiv, GLenum, GLenum, GLint);
63}
64
65void vboxglPixelMapfv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
66{
67 VBOX_OGL_GEN_OP3PTR(PixelMapfv, GLenum, GLsizei, GLfloat);
68}
69
70void vboxglPixelMapuiv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
71{
72 VBOX_OGL_GEN_OP3PTR(PixelMapuiv, GLenum, GLsizei, GLuint);
73}
74
75void vboxglPixelMapusv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
76{
77 VBOX_OGL_GEN_OP3PTR(PixelMapusv, GLenum, GLsizei, GLushort);
78}
79
80void vboxglDeleteTextures(VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
81{
82 VBOX_OGL_GEN_OP2PTR(DeleteTextures, GLsizei, GLuint);
83}
84
85void vboxglTexEnviv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
86{
87 VBOX_OGL_GEN_OP3PTR(TexEnviv, GLenum, GLenum, GLint);
88}
89
90void vboxglTexEnvfv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
91{
92 VBOX_OGL_GEN_OP3PTR(TexEnvfv, GLenum, GLenum, GLfloat);
93}
94
95void vboxglTexGendv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
96{
97 VBOX_OGL_GEN_OP3PTR(TexGendv, GLenum, GLenum, GLdouble);
98}
99
100void vboxglTexGenfv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
101{
102 VBOX_OGL_GEN_OP3PTR(TexGenfv, GLenum, GLenum, GLfloat);
103}
104
105void vboxglTexGeniv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
106{
107 VBOX_OGL_GEN_OP3PTR(TexGeniv, GLenum, GLenum, GLint);
108}
109
110void vboxglTexParameterfv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
111{
112 VBOX_OGL_GEN_OP3PTR(TexParameterfv, GLenum, GLenum, GLfloat);
113}
114
115
116void vboxglTexParameteriv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
117{
118 VBOX_OGL_GEN_OP3PTR(TexParameteriv, GLenum, GLenum, GLint);
119}
120
121void vboxglLoadMatrixd (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
122{
123 VBOX_OGL_GEN_OP1PTR(LoadMatrixd, GLdouble);
124}
125
126void vboxglLoadMatrixf (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
127{
128 VBOX_OGL_GEN_OP1PTR(LoadMatrixf, GLfloat);
129}
130
131
132void vboxglMultMatrixd (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
133{
134 VBOX_OGL_GEN_OP1PTR(MultMatrixd, GLdouble);
135}
136
137void vboxglMultMatrixf (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
138{
139 VBOX_OGL_GEN_OP1PTR(MultMatrixf, GLfloat);
140}
141
142void vboxglPolygonStipple (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
143{
144 VBOX_OGL_GEN_OP1PTR(PolygonStipple, GLubyte);
145}
146
147void 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 */
153void 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 */
159void 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 */
166void 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 */
172void 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 */
178void 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 */
184void vboxglNormalPointer (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
185{
186 VBOX_OGL_GEN_OP3PTR(NormalPointer, GLenum, GLsizei, GLvoid);
187}
188
189void vboxglCallLists (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
190{
191 VBOX_OGL_GEN_OP3PTR(CallLists, GLsizei, GLenum, GLvoid);
192}
193
194void vboxglMap1d (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
195{
196
197 VBOX_OGL_GEN_OP6PTR(Map1d, GLenum, GLdouble, GLdouble, GLint, GLint, GLdouble);
198}
199
200void vboxglMap1f(VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
201{
202 VBOX_OGL_GEN_OP6PTR(Map1f, GLenum, GLfloat, GLfloat, GLint, GLint, GLfloat);
203}
204
205void 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
210void 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
215void vboxglTexImage1D (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
216{
217 VBOX_OGL_GEN_OP8PTR(TexImage1D, GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, GLvoid);
218}
219
220void 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
226void vboxglTexSubImage1D (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
227{
228 VBOX_OGL_GEN_OP7PTR(TexSubImage1D, GLenum, GLint, GLint, GLsizei, GLenum, GLenum, GLvoid)
229}
230
231void vboxglTexSubImage2D (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
232{
233 VBOX_OGL_GEN_OP9PTR(TexSubImage2D, GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid);
234}
235
236void vboxglPrioritizeTextures (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
237{
238 VBOX_OGL_GEN_OP3PTRPTR(PrioritizeTextures, GLsizei, GLuint, GLclampf);
239}
240
241
242void vboxglRectdv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
243{
244 VBOX_OGL_GEN_OP2PTRPTR(Rectdv, GLdouble, GLdouble);
245}
246
247void vboxglRectfv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
248{
249 VBOX_OGL_GEN_OP2PTRPTR(Rectfv, GLfloat, GLfloat);
250}
251
252void vboxglRectiv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
253{
254 VBOX_OGL_GEN_OP2PTRPTR(Rectiv, GLint, GLint);
255}
256
257void vboxglRectsv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
258{
259 VBOX_OGL_GEN_OP2PTRPTR(Rectsv, GLshort, GLshort);
260}
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