Last change
on this file since 40 was
31,
checked in by Torben Dannhauer, 15 years ago
|
Adding first version of osgVisual!!
|
File size:
1.4 KB
|
Rev | Line | |
---|
[31] | 1 | /* -*-c++-*- osgVisual - Copyright (C) 2009-2010 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 | |
---|
| 17 | #include <osg/ArgumentParser> |
---|
| 18 | #include <osg/Referenced> |
---|
| 19 | #include <osgDB/Registry> |
---|
| 20 | |
---|
| 21 | #include <visual_core.h> |
---|
| 22 | |
---|
| 23 | |
---|
| 24 | const unsigned int MAX_NUM_EVENTS = 10; |
---|
| 25 | const unsigned int SWAP_BYTES_COMPARE = 0x12345678; |
---|
| 26 | |
---|
| 27 | int main(int argc, char** argv) |
---|
| 28 | { |
---|
| 29 | // Use an ArgumentParser object to manage the program arguments. |
---|
| 30 | osg::ArgumentParser arguments(&argc,argv); |
---|
| 31 | |
---|
| 32 | // Instantiate osgVisual main class |
---|
| 33 | osg::ref_ptr<osgVisual::visual_core> core = new osgVisual::visual_core(arguments); |
---|
| 34 | |
---|
| 35 | // Visual initialisieren |
---|
| 36 | core->initialize(); |
---|
| 37 | |
---|
| 38 | return 0; |
---|
| 39 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.