VirtualBox

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

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

double underscore cleanup. Adjusted file headers (license section should be separate from the @file).

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