Drag[en]gine Game Engine
1.21
|
Environment Map Probe Resource. More...
#include <deEnvMapProbe.h>
Public Types | |
typedef deTObjectReference< deEnvMapProbe > | Ref |
Type holding strong reference. More... | |
Public Types inherited from deResource | |
typedef deTObjectReference< deResource > | Ref |
Type holding strong reference. More... | |
Public Types inherited from deObject | |
typedef deTObjectReference< deObject > | Ref |
Type holding strong reference. More... | |
Public Member Functions | |
Management | |
const decDVector & | GetPosition () const |
Position. More... | |
void | SetPosition (const decDVector &position) |
Set position. More... | |
const decQuaternion & | GetOrientation () const |
Orientation. More... | |
void | SetOrientation (const decQuaternion &orientation) |
Set orientation. More... | |
const decVector & | GetScaling () const |
Scaling. More... | |
void | SetScaling (const decVector &scaling) |
Set scaling. More... | |
decShapeList & | GetShapeListInfluence () |
Influence shape list. More... | |
const decShapeList & | GetShapeListInfluence () const |
void | NotifyShapeListInfluenceChanged () |
Notifies the peers that the influence shape list changed. More... | |
decShape * | GetShapeReflection () const |
Reflection shape or NULL if the environment map is global. More... | |
void | SetShapeReflection (decShape *shape) |
Set reflection shape or NULL if the environment map is global. More... | |
decShapeList & | GetShapeListReflectionMask () |
Reflection mask shape list. More... | |
const decShapeList & | GetShapeListReflectionMask () const |
void | NotifyShapeReflectionChanged () |
Notifies the peers that the reflection shape changed. More... | |
float | GetInfluenceBorderSize () const |
Influence border size. More... | |
void | SetInfluenceBorderSize (float borderSize) |
Set influence border size. More... | |
int | GetInfluencePriority () const |
Influence priority. More... | |
void | SetInfluencePriority (int priority) |
Set influence priority. More... | |
const decLayerMask & | GetLayerMask () const |
Layer mask. More... | |
void | SetLayerMask (const decLayerMask &layerMask) |
Set layer mask. More... | |
deImage * | GetImage () const |
Explicit environment map image to use or NULL to auto-generate. More... | |
void | SetImage (deImage *image) |
Set explicit environment map image to use or NULL to auto-generate. More... | |
System Peers | |
deBaseGraphicEnvMapProbe * | GetPeerGraphic () const |
Graphics system peer. More... | |
void | SetPeerGraphic (deBaseGraphicEnvMapProbe *peer) |
Set graphics system peer. More... | |
Linked List | |
deWorld * | GetParentWorld () const |
Parent world or NULL. More... | |
void | SetParentWorld (deWorld *world) |
Set parent world or NULL. More... | |
deEnvMapProbe * | GetLLWorldPrev () const |
Previous environment map probe in the parent world linked list. More... | |
void | SetLLWorldPrev (deEnvMapProbe *instance) |
Set next environment map probe in the parent world linked list. More... | |
deEnvMapProbe * | GetLLWorldNext () const |
Next environment map probe in the parent world linked list. More... | |
void | SetLLWorldNext (deEnvMapProbe *instance) |
Set next environment map probe in the parent world linked list. More... | |
Public Member Functions inherited from deResource | |
deResourceManager * | GetResourceManager () const |
Resource manager or NULL if resource is leaking. More... | |
deEngine * | GetEngine () const |
Game engine object from resource manager. More... | |
deResource * | GetLLManagerPrev () const |
Previous resource in the resource manager linked list. More... | |
void | SetLLManagerPrev (deResource *resource) |
Set next resource in the resource manager linked list. More... | |
deResource * | GetLLManagerNext () const |
Next resource in the resource manager linked list. More... | |
void | SetLLManagerNext (deResource *resource) |
Set next resource in the resource manager linked list. More... | |
void | MarkLeaking () |
Marks the resource leaking. More... | |
deResource (deResourceManager *resourceManager) | |
Create resource. More... | |
Public Member Functions inherited from deObject | |
int | GetRefCount () const |
Reference count. More... | |
void | AddReference () |
Add reference increasing reference count by 1. More... | |
void | FreeReference () |
Decrease reference count by one and delete object if count reaches 0. More... | |
deObject () | |
Create object with reference count of 1. More... | |
Constructors and Destructors | |
deEnvMapProbe (deEnvMapProbeManager *manager) | |
Create new environment map probe. More... | |
virtual | ~deEnvMapProbe () |
Clean up environment map probe. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from deResource | |
virtual | ~deResource () |
Clean up resource. More... | |
Protected Member Functions inherited from deObject | |
virtual | ~deObject () |
Clean up object. More... | |
Environment Map Probe Resource.
Environment map probes tell the Graphic Module about a good place for a local environment map probe. Environment map probes define a shape list of influence, a shape list of reflection border, an influence border size and an influence priority. The influence shape list defines the shape inside which this environment map probe is best used. The influence border size defines the distance in meters form the border of the influence shape list where the influence gradually fades. Inside this border the influence is at the maximum. If multiple environment map probes overlap with full influence the influence priority defines which environment map wins over the others. The environment map probe with the highest influence priorty receives the full influence. All others are blended accordingly. This allows to place smaller environment maps inside larger ones to refine the result in places where a more narrow sampling is useful without having to construct complex influence shape lists excluding each other properly.The reflection border shape list defines the shape where the reflection maps to. Typically this is a box and should line up with the reflected map geometry as well as possible. Avoid complex shape lists for the reflection border as this is usually better for Graphic Modules to handle.
Type holding strong reference.
deEnvMapProbe::deEnvMapProbe | ( | deEnvMapProbeManager * | manager | ) |
Create new environment map probe.
|
protectedvirtual |
Clean up environment map probe.
|
inline |
Explicit environment map image to use or NULL to auto-generate.
|
inline |
Influence border size.
|
inline |
Influence priority.
|
inline |
Layer mask.
|
inline |
Next environment map probe in the parent world linked list.
|
inline |
Previous environment map probe in the parent world linked list.
|
inline |
Orientation.
|
inline |
Parent world or NULL.
|
inline |
Graphics system peer.
|
inline |
Position.
|
inline |
Scaling.
|
inline |
Influence shape list.
|
inline |
|
inline |
Reflection mask shape list.
|
inline |
|
inline |
Reflection shape or NULL if the environment map is global.
void deEnvMapProbe::NotifyShapeListInfluenceChanged | ( | ) |
Notifies the peers that the influence shape list changed.
void deEnvMapProbe::NotifyShapeReflectionChanged | ( | ) |
Notifies the peers that the reflection shape changed.
void deEnvMapProbe::SetImage | ( | deImage * | image | ) |
Set explicit environment map image to use or NULL to auto-generate.
void deEnvMapProbe::SetInfluenceBorderSize | ( | float | borderSize | ) |
Set influence border size.
void deEnvMapProbe::SetInfluencePriority | ( | int | priority | ) |
Set influence priority.
void deEnvMapProbe::SetLayerMask | ( | const decLayerMask & | layerMask | ) |
Set layer mask.
void deEnvMapProbe::SetLLWorldNext | ( | deEnvMapProbe * | instance | ) |
Set next environment map probe in the parent world linked list.
void deEnvMapProbe::SetLLWorldPrev | ( | deEnvMapProbe * | instance | ) |
Set next environment map probe in the parent world linked list.
void deEnvMapProbe::SetOrientation | ( | const decQuaternion & | orientation | ) |
Set orientation.
void deEnvMapProbe::SetParentWorld | ( | deWorld * | world | ) |
Set parent world or NULL.
void deEnvMapProbe::SetPeerGraphic | ( | deBaseGraphicEnvMapProbe * | peer | ) |
Set graphics system peer.
void deEnvMapProbe::SetPosition | ( | const decDVector & | position | ) |
Set position.
void deEnvMapProbe::SetScaling | ( | const decVector & | scaling | ) |
Set scaling.
void deEnvMapProbe::SetShapeReflection | ( | decShape * | shape | ) |
Set reflection shape or NULL if the environment map is global.