VR-Forces 4.6 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
vrvCore
DtSharedLightingRenderSettings.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 <
vrvCore/DtSharedSettings.h
>
13
#include <
vrvCore/DtSettingsBackupManager.h
>
14
#include <
makArchives/DtLightingRenderSettingsRecord.h
>
15
16
#include <
vrvCore/DtRecordSettingsBackup.h
>
17
18
#include <string>
19
20
namespace
makArchives
21
{
22
class
DtLightingRenderSettingsRecord;
23
}
24
25
namespace
makVrv
26
{
27
28
class
DtDe;
29
class
DtSharedLightingRenderSettings
;
30
31
typedef
DtSharedRecordSettingsBackup
<
DtSharedLightingRenderSettings
,
32
makArchives::DtLightingRenderSettingsRecord
>
DtLightingRenderSettingsBackup
;
33
36
class
DT_DLL_VRVCORE
DtSharedLightingRenderSettings
:
public
DtSharedSettings
37
{
38
public
:
39
41
virtual
~
DtSharedLightingRenderSettings
();
42
45
47
float
lightingEmissionScale()
const
;
48
void
setLightingEmissionScale(
float
setting);
49
51
float
lightingDiffuseScale()
const
;
52
void
setLightingDiffuseScale(
float
setting);
53
55
float
lightingAmbientScale()
const
;
56
void
setLightingAmbientScale(
float
setting);
57
58
float
globalAmbientValue()
const
;
59
void
setGlobalAmbientValue(
float
ambientValue);
60
61
bool
useGlobalAmbient()
const
;
62
void
setUseGlobalAmbient(
bool
useGlobalAmbient);
63
64
float
globalDiffuseValue()
const
;
65
void
setGlobalDiffuseValue(
float
diffuseValue);
66
67
bool
useGlobalDiffuse()
const
;
68
void
setUseGlobalDiffuse(
bool
useGlobalDiffuse);
69
70
bool
perPixelLightingEnabled()
const
;
71
void
setPerPixelLightingEnabled(
bool
setting );
73
74
76
79
81
void
setFromRecord(
const
makArchives::DtLightingRenderSettingsRecord
& rec );
82
84
void
getRecord(
makArchives::DtLightingRenderSettingsRecord
& rec )
const
;
85
87
virtual
const
DtLightingRenderSettingsBackup
* settingsBackup()
const
;
88
90
virtual
DtLightingRenderSettingsBackup
* settingsBackup();
91
93
virtual
void
backup();
94
96
98
static
std::string className();
99
100
protected
:
101
103
friend
class
DtReadSettingsLock
<
DtSharedLightingRenderSettings
>;
105
friend
class
DtWriteSettingsLock
<
DtSharedLightingRenderSettings
>;
106
108
DtSharedLightingRenderSettings
(
DtSharedSettingsManager
& manager );
109
110
protected
:
111
112
float
myLightingEmissionScale
;
113
float
myLightingDiffuseScale
;
114
float
myLightingAmbientScale
;
115
float
myGlobalAmbientValue
;
116
bool
myUseGlobalAmbient
;
117
float
myGlobalDiffuseValue
;
118
bool
myUseGlobalDiffuse
;
119
bool
myPerPixelLightingEnabled
;
120
DtLightingRenderSettingsBackup
*
mySettingsBackup
;
121
122
};
123
124
}
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)