VR-Forces 4.5 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrvOsg
DtSkyDrawable.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2015 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvOsg/vrvOsg.h
>
13
#include <
vrvUtil/DtVirtualBaseClass.h
>
14
#include <osg/Drawable>
15
16
namespace
SilverLining
17
{
18
class
Atmosphere;
19
}
20
21
namespace
makVrv
22
{
23
class
DtSilverliningGroup;
24
27
class
DT_DLL_VRVOSG
DtSkyDrawable
:
public
osg::Drawable
28
{
29
30
public
:
31
32
friend
class
DtSkyDrawableCreator
;
33
35
DtSkyDrawable
(
const
DtSkyDrawable
& copy,
const
osg::CopyOp& copyop);
36
38
virtual
~
DtSkyDrawable
();
39
40
META_Object(vrvOsg,
DtSkyDrawable
)
41
42
43
void setGeocentricMode(
bool
mode
);
44
46
void
setLensFlare(
bool
enabled);
47
49
virtual
void
drawImplementation(osg::RenderInfo& renderInfo) const;
50
52
virtual
void
releaseGLObjects(osg::State* state=0) const;
53
55
void
setSkyBoxSize(
double
size
);
56
58
double
getSkyBoxSize() const;
59
60
protected:
61
63
DtSkyDrawable
(
DtSilverliningGroup
* parent = 0);
64
65
protected:
66
67
DtSilverliningGroup
* myParent;
68
bool
myGeocentricFlag;
69
osg::Vec4f myFogColor;
70
float
myFogDensity;
71
double
myBoxSize;
72
bool
myLensFlareFlag;
73
};
74
77
class
DT_DLL_VRVOSG
DtSkyDrawableCreator
: public
DtVirtualBaseClass
78
{
79
public
:
80
83
static
DtSkyDrawableCreator
& instance(
DtDe
& de);
84
86
static
void
registerInstance(
DtDe
& de,
DtSkyDrawableCreator
* anInstance);
87
89
virtual
DtSkyDrawable
* create(
DtSilverliningGroup
* parent);
90
};
91
92
}
Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (
www.mak.com
)