/* $Id: OpenGLTestApp.cpp 20500 2009-06-12 11:30:19Z vboxsync $ */ /** @file * VBox host opengl support test application. */ /* * 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; * you can redistribute it and/or modify it under the terms of the GNU * 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 #ifdef RT_OS_WINDOWS #include #endif extern "C" { extern void * crSPULoad(void *, int, char *, char *, void *); extern void crSPUUnloadChain(void *); } #ifndef RT_OS_WINDOWS int main(int argc, char **argv) #else extern "C" int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/, LPSTR lpCmdLine, int /*nShowCmd*/) #endif { void *spu; int rc=1; RTR3Init(); spu = crSPULoad(NULL, 0, "render", NULL, NULL); if (spu) { crSPUUnloadChain(spu); rc=0; } /*RTR3Term();*/ return rc; }