VR-Forces 4.7 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrvOsg
DtEnvironmentInfo.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
vrvOsg/vrvOsg.h
>
4
#include <
vrvUtil/DtVirtualBaseClass.h
>
5
6
#include <osg/Vec3>
7
#include <osg/Vec4>
8
9
namespace
makVrv
10
{
11
class
DtDe;
12
13
class
DT_DLL_VRVOSG
DtEnvironmentInfo
:
public
DtVirtualBaseClass
14
{
15
public
:
16
static
DtEnvironmentInfo
& instance(
DtDe
& de);
17
18
virtual
osg::Vec3 lightPosition();
19
virtual
osg::Vec4 ambientColor();
20
virtual
osg::Vec4 diffuseColor();
21
virtual
osg::Vec4 fogColor();
22
virtual
float
fogDensity();
23
24
virtual
void
setLightPosition(
const
osg::Vec3& pos);
25
virtual
void
setAmbientColor(
const
osg::Vec4& color);
26
virtual
void
setDiffuseColor(
const
osg::Vec4& color);
27
virtual
void
setFogColor(
const
osg::Vec4& color);
28
virtual
void
setFogDensity(
float
density);
29
30
virtual
~
DtEnvironmentInfo
();
31
32
protected
:
33
DtEnvironmentInfo
();
34
35
private
:
36
osg::Vec3
myLightPosition
;
37
osg::Vec4
myAmbientColor
;
38
osg::Vec4
myDiffuseColor
;
39
osg::Vec4
myFogColor
;
40
float
myFogDensity
;
41
};
42
}
Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)