source: osgVisual/include/sky_Silverlining/skySilverLining_AtmosphereReference.h @ 32

Last change on this file since 32 was 32, checked in by Torben Dannhauer, 14 years ago

Adding first version of osgVisual!!

File size: 1.9 KB
Line 
1#pragma once
2/* -*-c++-*- osgVisual - Copyright (C) 2009-2010 Torben Dannhauer
3 *
4 * This library is based on OpenSceneGraph, open source and may be redistributed and/or modified under
5 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
6 * (at your option) any later version.  The full license is in LICENSE file
7 * included with this distribution, and on the openscenegraph.org website.
8 *
9 * osgVisual requires for some proprietary modules a license from the correspondig manufacturer.
10 * You have to aquire licenses for all used proprietary modules.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 * OpenSceneGraph Public License for more details.
16 *
17 * This file is based on the OSG example of the Silverlining SDK:
18 * Copyright (c) 2008 Sundog Software, LLC. All rights reserved worldwide.
19*/
20
21#include <SilverLining.h>
22#include <osg/Referenced>
23
24
25namespace osgVisual
26{
27
28/**
29 * \brief This class holds the pointer to the atmosphere object and is bound to the rendering camera.
30 *
31 * This way all rendered elements can access the atmosphere. It also mirrors the atmosphere's init status
32 * to prevent crashing by access to the uninitialized object.
33 *
34 * @author Torben Dannhauer
35 * @date  Sep 2009
36 */ 
37class skySilverLining_atmosphereReference : public osg::Referenced
38{
39public:
40        /**
41         * Pointer to the atmosphere object.
42         */ 
43        SilverLining::Atmosphere *atmosphere;
44
45        /**
46         * This flag indicates whether the atmosphere is initialized and the pointer is valid.
47         */ 
48        bool atmosphereInitialized;
49
50        /**
51         * \brief Constructor to init the values.
52         *
53         */ 
54        skySilverLining_atmosphereReference() : atmosphereInitialized(false), atmosphere(0) {};
55};
56
57}       // END NAMESPACE
Note: See TracBrowser for help on using the repository browser.