VirtualBox

Changeset 24004 in vbox for trunk/src


Ignore:
Timestamp:
Oct 23, 2009 6:39:42 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
53841
Message:

VBoxTestOGL: small help

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/generic/OpenGLTestApp.cpp

    r23990 r24004  
    2020 */
    2121
     22#include <iprt/assert.h>
     23#include <iprt/buildconfig.h>
     24#include <iprt/err.h>
     25#include <iprt/getopt.h>
    2226#include <iprt/initterm.h>
    23 #include <iprt/getopt.h>
    24 #include <iprt/err.h>
    25 #include <iprt/assert.h>
     27#include <iprt/stream.h>
    2628#ifdef RT_OS_WINDOWS
    2729#include <Windows.h>
     
    4042static int vboxCheck3DAccelerationSupported()
    4143{
    42     void *spu = crSPULoad(NULL, 0, "render", NULL, NULL);
     44    void *spu = crSPULoad(NULL, 0, (char*)"render", NULL, NULL);
    4345    if (spu)
    4446    {
     
    5860{
    5961    static int dummyArgc = 1;
    60     static char * dummyArgv = "GlTest";
     62    static char * dummyArgv = (char*)"GlTest";
    6163    QApplication app (dummyArgc, &dummyArgv);
    6264
     
    8183    RTR3Init();
    8284
    83     if(argc < 3)
     85    if(argc < 2)
    8486    {
    8587#ifdef VBOX_WITH_CROGL
     
    9496            { "--test",           't',   RTGETOPT_REQ_STRING },
    9597            { "-test",            't',   RTGETOPT_REQ_STRING },
     98            { "--help",           'h',   RTGETOPT_REQ_NOTHING },
    9699        };
    97100
     
    125128                    rc = 1;
    126129                    break;
     130
     131                case 'h':
     132                    RTPrintf("VirtualBox Helper for testing 2D/3D OpenGL capabilities %u.%u.%u\n"
     133                             "(C) 2009 Sun Microsystems, Inc.\n"
     134                             "All rights reserved.\n"
     135                             "\n"
     136                             "Usage:\n"
     137                             "\n"
     138                             "  VBoxTestOGL [ --test 2D|3D]\n"
     139                             "\n",
     140                            RTBldCfgVersionMajor(), RTBldCfgVersionMinor(), RTBldCfgVersionBuild());
     141                    break;
     142
    127143                case VERR_GETOPT_UNKNOWN_OPTION:
    128144                case VINF_GETOPT_NOT_OPTION:
    129145                    rc = 1;
     146
    130147                default:
    131148                    break;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette