VirtualBox

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

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

The Big Sun Rebranding Header Change

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