source: osgVisual/trunk/include/sky_Silverlining/skySilverLining_AtmosphereReference.h @ 326

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

Updated copyright NOTICE
(No code changes)

File size: 1.9 KB
Line 
1#pragma once
2/* -*-c++-*- osgVisual - Copyright (C) 2009-2011 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{
39        #include <leakDetection.h>
40public:
41        /**
42         * Pointer to the atmosphere object.
43         */ 
44        SilverLining::Atmosphere *atmosphere;
45
46        /**
47         * This flag indicates whether the atmosphere is initialized and the pointer is valid.
48         */ 
49        bool atmosphereInitialized;
50
51        /**
52         * \brief Constructor to init the values.
53         *
54         */ 
55        skySilverLining_atmosphereReference() : atmosphereInitialized(false), atmosphere(0) {};
56};
57
58}       // END NAMESPACE
Note: See TracBrowser for help on using the repository browser.