Last change
on this file since 20304 was 20304, checked in by vboxsync, 16 years ago |
crOpenGL: change host opengl test to non console app to remove background console window
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Id
|
File size:
790 bytes
|
Line | |
---|
1 | /* $Id: OpenGLTestApp.cpp 20304 2009-06-05 09:00:56Z vboxsync $ */
|
---|
2 |
|
---|
3 | /** @file
|
---|
4 | * VBox host opengl support test
|
---|
5 | */
|
---|
6 |
|
---|
7 | /*
|
---|
8 | * Copyright (C) 2009 Sun Microsystems, Inc.
|
---|
9 | *
|
---|
10 | * Sun Microsystems, Inc. confidential
|
---|
11 | * All rights reserved
|
---|
12 | */
|
---|
13 |
|
---|
14 | #include <stdio.h>
|
---|
15 | #include <iprt/initterm.h>
|
---|
16 | #ifdef RT_OS_WINDOWS
|
---|
17 | #include <windows.h>
|
---|
18 | #endif
|
---|
19 |
|
---|
20 | extern "C" {
|
---|
21 | extern void * crSPULoad(void *, int, char *, char *, void *);
|
---|
22 | extern void crSPUUnloadChain(void *);
|
---|
23 | }
|
---|
24 |
|
---|
25 | #ifndef RT_OS_WINDOWS
|
---|
26 | int main (int argc, char **argv)
|
---|
27 | #else
|
---|
28 | extern "C" int WINAPI WinMain(HINSTANCE hInstance,
|
---|
29 | HINSTANCE /*hPrevInstance*/, LPSTR lpCmdLine, int /*nShowCmd*/)
|
---|
30 | #endif
|
---|
31 | {
|
---|
32 | void *spu;
|
---|
33 | int rc=1;
|
---|
34 |
|
---|
35 | RTR3Init();
|
---|
36 |
|
---|
37 | spu = crSPULoad(NULL, 0, "render", NULL, NULL);
|
---|
38 | if (spu)
|
---|
39 | {
|
---|
40 | crSPUUnloadChain(spu);
|
---|
41 | rc=0;
|
---|
42 | }
|
---|
43 |
|
---|
44 | /*RTR3Term();*/
|
---|
45 | return rc;
|
---|
46 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.