HostOGLSimpleSync.cpp revision 039cd2c4871a00e51af909222a34695d9cec3000
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync/** @file
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync *
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync * VBox OpenGL
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync *
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync * Simple buffered OpenGL functions
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync *
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync * Copyright (C) 2006-2007 innotek GmbH
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync *
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync * available from http://www.virtualbox.org. This file is free software;
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync * you can redistribute it and/or modify it under the terms of the GNU
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync * General Public License as published by the Free Software Foundation,
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync * distribution. VirtualBox OSE is distributed in the hope that it will
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync * be useful, but WITHOUT ANY WARRANTY of any kind.
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync *
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync * If you received this file as part of a commercial VirtualBox
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync * distribution, then only the terms of your commercial VirtualBox
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync * license agreement apply instead of the previous paragraph.
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync *
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync */
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync#include "vboxgl.h"
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync/* OpenGL functions */
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncvoid vboxglFinish (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync{
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync /** @todo if no back buffer, then draw to screen */
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync VBOX_OGL_GEN_SYNC_OP(Finish);
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync}
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncvoid vboxglFlush (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync{
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync /** @todo if no back buffer, then draw to screen */
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync VBOX_OGL_GEN_SYNC_OP(Flush);
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync}
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncvoid vboxglGenLists (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync{
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync VBOX_OGL_GEN_SYNC_OP1_RET(GLuint, GenLists, GLsizei);
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync}
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncvoid vboxglIsEnabled (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync{
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync /** @todo cache? */
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync VBOX_OGL_GEN_SYNC_OP1_RET(GLboolean, IsEnabled, GLenum);
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync}
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncvoid vboxglIsList (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync{
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync VBOX_OGL_GEN_SYNC_OP1_RET(GLboolean, IsList, GLuint);
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync}
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncvoid vboxglIsTexture (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer)
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync{
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync VBOX_OGL_GEN_SYNC_OP1_RET(GLboolean, IsTexture, GLuint);
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync}
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync