source: experimental/osgVisualNG/osgVisualNG.cpp @ 424

Last change on this file since 424 was 417, checked in by Torben Dannhauer, 12 years ago
  • Property svn:eol-style set to native
File size: 1.6 KB
Line 
1/* -*-c++-*- osgVisual - Copyright (C) 2009-2011 Torben Dannhauer
2 *
3 * This library is based on OpenSceneGraph, open source and may be redistributed and/or modified under
4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
5 * (at your option) any later version.  The full license is in LICENSE file
6 * included with this distribution, and on the openscenegraph.org website.
7 *
8 * osgVisual requires for some proprietary modules a license from the correspondig manufacturer.
9 * You have to aquire licenses for all used proprietary modules.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 * OpenSceneGraph Public License for more details.
15*/
16
17const unsigned int MAX_NUM_EVENTS = 10;
18
19#ifdef _DEBUG
20        #ifdef WIN32
21                // Declare this in header.
22                #define _CRTDBG_MAP_ALLOC
23                #include <stdlib.h>
24                #include <crtdbg.h>
25        #endif
26#endif
27
28
29//#include <windows.h>
30
31#include <osg/ArgumentParser>
32#include <osg/Referenced>
33#include <osgDB/Registry>
34
35#include <visual_core.h>
36
37
38
39
40int main(int argc, char** argv)
41{
42    // Use an ArgumentParser object to manage the program arguments.
43        osg::ArgumentParser arguments(&argc,argv);
44
45    // Instantiate osgVisual main class
46        osg::ref_ptr<osgVisual::visual_core> core = new osgVisual::visual_core(arguments);
47
48    // Visual initialisieren
49    core->initialize();
50
51        // Shut osgVisual down
52        core->shutdown();
53
54        // Set Pointer to null to destroy the objects before this function ends
55        core = NULL;
56
57        return 0;
58}
Note: See TracBrowser for help on using the repository browser.