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 |
|
---|
27 | /* OpenGL functions */
|
---|
28 | void vboxglFinish (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
29 | {
|
---|
30 | /** @todo if no back buffer, then draw to screen */
|
---|
31 | VBOX_OGL_GEN_SYNC_OP(Finish);
|
---|
32 | }
|
---|
33 |
|
---|
34 | void vboxglFlush (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
35 | {
|
---|
36 | /** @todo if no back buffer, then draw to screen */
|
---|
37 | VBOX_OGL_GEN_SYNC_OP(Flush);
|
---|
38 | }
|
---|
39 |
|
---|
40 | void vboxglGenLists (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
41 | {
|
---|
42 | VBOX_OGL_GEN_SYNC_OP1_RET(GLuint, GenLists, GLsizei);
|
---|
43 | }
|
---|
44 |
|
---|
45 | void vboxglIsEnabled (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
46 | {
|
---|
47 | /** @todo cache? */
|
---|
48 | VBOX_OGL_GEN_SYNC_OP1_RET(GLboolean, IsEnabled, GLenum);
|
---|
49 | }
|
---|
50 |
|
---|
51 | void vboxglIsList (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
52 | {
|
---|
53 | VBOX_OGL_GEN_SYNC_OP1_RET(GLboolean, IsList, GLuint);
|
---|
54 | }
|
---|
55 |
|
---|
56 | void vboxglIsTexture (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
|
---|
57 | {
|
---|
58 | VBOX_OGL_GEN_SYNC_OP1_RET(GLboolean, IsTexture, GLuint);
|
---|
59 | }
|
---|
60 |
|
---|
61 |
|
---|
62 |
|
---|