VirtualBox

source: vbox/trunk/src/VBox/HostServices/SharedOpenGL/HostOGLSimpleSync.cpp@ 3698

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

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

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