renderspu_cocoa.c revision 48789466bb54e3c47247eeda779b2e7943f1391a
/** @file
*
* VirtualBox OpenGL Cocoa Window System implementation
*/
/*
* Copyright (C) 2009 Sun Microsystems, Inc.
*
* 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.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
* Clara, CA 95054 USA or visit http://www.sun.com if you need
* additional information or have any questions.
*/
#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)
{
#ifdef __LP64__
#else /* __LP64__ */
#endif /* __LP64__ */
if (!pParentWin)
return GL_FALSE;
if (fShowIt)
return GL_TRUE;
}
{
}
{
#ifdef __LP64__
#else /* __LP64__ */
#endif /* __LP64__ */
}
{
}
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();
}
{
}