VirtualBox

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

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

Export HostServices

File size: 5.2 KB
Line 
1/** @file
2 *
3 * VBox OpenGL
4 *
5 * Simple 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
26void vboxglReadPixels (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
27{
28 VBOX_OGL_GEN_SYNC_OP7_PASS_PTR(ReadPixels, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid);
29}
30
31/** @todo */
32void vboxglFeedbackBuffer (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
33{
34 AssertFailed();
35// VBOX_OGL_GEN_SYNC_OP3_PTR(FeedbackBuffer, GLsizei, GLenum, GLfloat);
36}
37
38/** @todo */
39void vboxglSelectBuffer (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
40{
41 AssertFailed();
42// VBOX_OGL_GEN_SYNC_OP2_PTR(SelectBuffer, GLsizei, GLuint);
43}
44
45/* Note: when in GL_FEEDBACK or GL_SELECT mode -> fill those buffers
46 * when switching to GL_FEEDBACK or GL_SELECT mode -> pass pointers
47 */
48void vboxglRenderMode (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
49{
50 /** @todo */
51 AssertFailed();
52 VBOX_OGL_GEN_SYNC_OP1_RET(GLint, RenderMode, GLenum);
53}
54
55void vboxglGenTextures (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
56{
57 VBOX_OGL_GEN_SYNC_OP2_PASS_PTR(GenTextures, GLsizei, GLuint);
58}
59
60void vboxglGetBooleanv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
61{
62 VBOX_OGL_GEN_SYNC_OP2_PASS_PTR(GetBooleanv, GLenum, GLboolean);
63}
64
65void vboxglGetDoublev (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
66{
67 VBOX_OGL_GEN_SYNC_OP2_PASS_PTR(GetDoublev, GLenum, GLdouble);
68}
69
70void vboxglGetFloatv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
71{
72 VBOX_OGL_GEN_SYNC_OP2_PASS_PTR(GetFloatv, GLenum, GLfloat);
73}
74
75void vboxglGetIntegerv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
76{
77 VBOX_OGL_GEN_SYNC_OP2_PASS_PTR(GetIntegerv, GLenum, GLint);
78}
79
80void vboxglGetLightfv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
81{
82 VBOX_OGL_GEN_SYNC_OP3_PASS_PTR(GetLightfv, GLenum ,GLenum, GLfloat);
83}
84
85void vboxglGetLightiv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
86{
87 VBOX_OGL_GEN_SYNC_OP3_PASS_PTR(GetLightiv, GLenum ,GLenum, GLint);
88}
89
90void vboxglGetMaterialfv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
91{
92 VBOX_OGL_GEN_SYNC_OP3_PASS_PTR(GetMaterialfv, GLenum ,GLenum, GLfloat);
93}
94
95void vboxglGetMaterialiv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
96{
97 VBOX_OGL_GEN_SYNC_OP3_PASS_PTR(GetMaterialiv, GLenum ,GLenum, GLint);
98}
99
100void vboxglGetPixelMapfv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
101{
102 VBOX_OGL_GEN_SYNC_OP2_PASS_PTR(GetPixelMapfv, GLenum, GLfloat);
103}
104
105void vboxglGetPixelMapuiv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
106{
107 VBOX_OGL_GEN_SYNC_OP2_PASS_PTR(GetPixelMapuiv, GLenum, GLuint);
108}
109
110void vboxglGetPixelMapusv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
111{
112 VBOX_OGL_GEN_SYNC_OP2_PASS_PTR(GetPixelMapusv, GLenum, GLushort);
113}
114
115void vboxglGetTexEnviv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
116{
117 VBOX_OGL_GEN_SYNC_OP3_PASS_PTR(GetTexEnviv, GLenum, GLenum, GLint);
118}
119
120void vboxglGetTexEnvfv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
121{
122 VBOX_OGL_GEN_SYNC_OP3_PASS_PTR(GetTexEnvfv, GLenum, GLenum, GLfloat);
123}
124
125void vboxglGetTexGendv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
126{
127 VBOX_OGL_GEN_SYNC_OP3_PASS_PTR(GetTexGendv, GLenum, GLenum, GLdouble);
128}
129
130void vboxglGetTexGenfv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
131{
132 VBOX_OGL_GEN_SYNC_OP3_PASS_PTR(GetTexGenfv, GLenum, GLenum, GLfloat);
133}
134
135void vboxglGetTexGeniv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
136{
137 VBOX_OGL_GEN_SYNC_OP3_PASS_PTR(GetTexGeniv, GLenum, GLenum, GLint);
138}
139
140void vboxglGetTexParameterfv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
141{
142 VBOX_OGL_GEN_SYNC_OP3_PASS_PTR(GetTexParameterfv, GLenum, GLenum, GLfloat);
143}
144
145void vboxglGetTexParameteriv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
146{
147 VBOX_OGL_GEN_SYNC_OP3_PASS_PTR(GetTexParameteriv, GLenum, GLenum, GLint);
148}
149
150void vboxglGetClipPlane (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
151{
152 VBOX_OGL_GEN_SYNC_OP2_PASS_PTR(GetClipPlane, GLenum, GLdouble);
153}
154
155void vboxglGetPolygonStipple (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
156{
157 VBOX_OGL_GEN_SYNC_OP1_PASS_PTR(GetPolygonStipple, GLubyte);
158}
159
160void vboxglGetTexLevelParameterfv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
161{
162 VBOX_OGL_GEN_SYNC_OP4_PASS_PTR(GetTexLevelParameterfv, GLenum, GLint, GLenum, GLfloat);
163}
164
165void vboxglGetTexLevelParameteriv (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
166{
167 VBOX_OGL_GEN_SYNC_OP4_PASS_PTR(GetTexLevelParameteriv, GLenum, GLint, GLenum, GLint);
168}
169
170void vboxglGetTexImage (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
171{
172 VBOX_OGL_GEN_SYNC_OP5_PASS_PTR(GetTexImage, GLenum, GLint, GLenum, GLenum, GLvoid);
173}
Note: See TracBrowser for help on using the repository browser.

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