renderspu_cocoa.c revision f44a3b919727a151d40b5b238385da9938b6f1fa
/** @file
*
* VirtualBox OpenGL Cocoa Window System implementation
*/
/*
* Copyright (C) 2009 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
#include "renderspu.h"
{
/* cocoaGLVisualCreate(&pCtxInfo->context);*/
return GL_TRUE;
}
GLboolean renderspu_SystemCreateContext(VisualInfo *pVisInfo, ContextInfo *pCtxInfo, ContextInfo *pShharedCtxInfo)
{
return GL_TRUE;
}
{
if(!pCtxInfo)
return;
{
}
}
{
/* Real fullscreen isn't supported by VirtualBox */
}
GLboolean renderspu_SystemVBoxCreateWindow(VisualInfo *pVisInfo, GLboolean fShowIt, WindowInfo *pWinInfo)
{
/* VirtualBox is the only frontend which support 3D right now. */
char pszName[256];
/* Check for VirtualBox and VirtualBoxVM */
return GL_FALSE;
#ifdef __LP64__
#else /* __LP64__ */
#endif /* __LP64__ */
if (fShowIt)
return GL_TRUE;
}
{
#ifdef __LP64__
#else /* __LP64__ */
#endif /* __LP64__ */
}
{
}
{
#ifdef __LP64__
#else /* __LP64__ */
#endif /* __LP64__ */
/*pParentWin is unused in the call, overwise it might hold incorrect value if for ex. last reparent call was for
a different screen*/
}
{
}
void renderspu_SystemGetWindowGeometry(WindowInfo *pWinInfo, GLint *pX, GLint *pY, GLint *pW, GLint *pH)
{
}
{
*pW = 10000;
*pH = 10000;
}
{
}
{
/* if(pWinInfo->visual != pCtxInfo->visual)*/
/* printf ("visual mismatch .....................\n");*/
}
{
}
{
}
{
}
{
}
void renderspu_SystemFlush()
{
cocoaFlush();
}
void renderspu_SystemFinish()
{
cocoaFinish();
}
{
}