VirtualBox

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