Drag[en]gine Game Engine
1.21
|
Decal Resource. More...
#include <deDecal.h>
Public Types | |
typedef deTObjectReference< deDecal > | 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 decVector & | GetPosition () const |
Position. More... | |
void | SetPosition (const decVector &position) |
Set position. More... | |
const decQuaternion & | GetOrientation () const |
Orientation. More... | |
void | SetOrientation (const decQuaternion &orientation) |
Set orientation. More... | |
const decVector & | GetSize () const |
Size. More... | |
void | SetSize (const decVector &size) |
Set size. More... | |
const decTexMatrix2 & | GetTransform () const |
Texture coordinate transformation matrix. More... | |
void | SetTransform (const decTexMatrix2 &matrix) |
Set texture coordinate transformation matrix. More... | |
deSkin * | GetSkin () const |
Skin. More... | |
void | SetSkin (deSkin *skin) |
Set skin. More... | |
int | GetTexture () const |
Texture number in the skin. More... | |
void | SetTexture (int texture) |
Set texture number in the skin. More... | |
deDynamicSkin * | GetDynamicSkin () const |
Dynamic skin or NULL if not used. More... | |
void | SetDynamicSkin (deDynamicSkin *dynamicSkin) |
Set dynamic skin or NULL if not used. More... | |
bool | GetVisible () const |
Decal is visible. More... | |
void | SetVisible (bool visible) |
Set if decal is visible. More... | |
Bone States | |
int | GetBoneStateCount () const |
Number of bone states. More... | |
void | SetBoneStateCount (int count) |
Set number of bone states. More... | |
deDecalBoneState & | GetBoneStateAt (int index) |
Bone state at the given index. More... | |
void | SnapshotBoneStatesFrom (deComponent *component) |
Copy current bone state from the provided component. More... | |
Component linked list | |
deComponent * | GetParentComponent () const |
Parent component or NULL. More... | |
void | SetParentComponent (deComponent *component) |
Set parent component or NULL. More... | |
deDecal * | GetLLComponentPrev () const |
Previous decal in component linked list. More... | |
void | SetLLComponentPrev (deDecal *decal) |
Set next decal in the component linked list. More... | |
deDecal * | GetLLComponentNext () const |
Next decal in the component linked list. More... | |
void | SetLLComponentNext (deDecal *decal) |
Set next decal in the component linked list. More... | |
Height terrain sector linked list | |
deHeightTerrainSector * | GetParentHeightTerrainSector () const |
Parent height terrain sector or NULL. More... | |
void | SetParentHeightTerrainSector (deHeightTerrainSector *sector) |
Set parent height terrain sector or NULL. More... | |
deDecal * | GetLLHeightTerrainSectorPrev () const |
Previous decal in height terrain sector linked list. More... | |
void | SetLLHeightTerrainSectorPrev (deDecal *decal) |
Set next decal in the height terrain sector linked list. More... | |
deDecal * | GetLLHeightTerrainSectorNext () const |
Next decal in the height terrain sector linked list. More... | |
void | SetLLHeightTerrainSectorNext (deDecal *decal) |
Set next decal in the height terrain sector 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 | |
deDecal (deDecalManager *manager) | |
Create decal. More... | |
virtual | ~deDecal () |
Clean up decal. More... | |
System Peers | |
deBaseGraphicDecal * | GetPeerGraphic () const |
Graphic system peer. More... | |
void | SetPeerGraphic (deBaseGraphicDecal *peer) |
Set graphic system peer. More... | |
deBasePhysicsDecal * | GetPeerPhysics () const |
Physics system peer. More... | |
void | SetPeerPhysics (deBasePhysicsDecal *peer) |
Set physics system peer. More... | |
deBaseAudioDecal * | GetPeerAudio () const |
Audio system peer. More... | |
void | SetPeerAudio (deBaseAudioDecal *peer) |
Set audio system peer. 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... | |
Decal Resource.
Decals are rectangular textures splatted on a curved surface like a component. Decals have a slight offset from the hosting surface hence they cover the surface below. The ordering of the decal determines which decal covers others. A decal is defined by projection parameters. The actual projection is carried out by the Graphic Module. A decal is first located in space using a position and orientation. The size determines the width and height of the decal on the projection plane previously defined. The texture coordinates defined the texture coordinates of the corners of the decal starting in the upper left corner going around the decal in clockwise order. The decal is then projected along the view direction on the geometry it is attached to.
typedef deTObjectReference<deDecal> deDecal::Ref |
Type holding strong reference.
deDecal::deDecal | ( | deDecalManager * | manager | ) |
Create decal.
|
protectedvirtual |
Clean up decal.
deDecalBoneState& deDecal::GetBoneStateAt | ( | int | index | ) |
Bone state at the given index.
|
inline |
Number of bone states.
|
inline |
Dynamic skin or NULL if not used.
|
inline |
Next decal in the component linked list.
|
inline |
Previous decal in component linked list.
|
inline |
Next decal in the height terrain sector linked list.
|
inline |
Previous decal in height terrain sector linked list.
|
inline |
Orientation.
|
inline |
Parent component or NULL.
|
inline |
Parent height terrain sector or NULL.
|
inline |
Audio system peer.
|
inline |
Graphic system peer.
|
inline |
Physics system peer.
|
inline |
Position.
|
inline |
Size.
|
inline |
Skin.
|
inline |
Texture number in the skin.
|
inline |
Texture coordinate transformation matrix.
|
inline |
Decal is visible.
void deDecal::SetBoneStateCount | ( | int | count | ) |
Set number of bone states.
void deDecal::SetDynamicSkin | ( | deDynamicSkin * | dynamicSkin | ) |
Set dynamic skin or NULL if not used.
void deDecal::SetLLComponentNext | ( | deDecal * | decal | ) |
Set next decal in the component linked list.
void deDecal::SetLLComponentPrev | ( | deDecal * | decal | ) |
Set next decal in the component linked list.
void deDecal::SetLLHeightTerrainSectorNext | ( | deDecal * | decal | ) |
Set next decal in the height terrain sector linked list.
void deDecal::SetLLHeightTerrainSectorPrev | ( | deDecal * | decal | ) |
Set next decal in the height terrain sector linked list.
void deDecal::SetOrientation | ( | const decQuaternion & | orientation | ) |
Set orientation.
void deDecal::SetParentComponent | ( | deComponent * | component | ) |
Set parent component or NULL.
void deDecal::SetParentHeightTerrainSector | ( | deHeightTerrainSector * | sector | ) |
Set parent height terrain sector or NULL.
void deDecal::SetPeerAudio | ( | deBaseAudioDecal * | peer | ) |
Set audio system peer.
void deDecal::SetPeerGraphic | ( | deBaseGraphicDecal * | peer | ) |
Set graphic system peer.
void deDecal::SetPeerPhysics | ( | deBasePhysicsDecal * | peer | ) |
Set physics system peer.
void deDecal::SetPosition | ( | const decVector & | position | ) |
Set position.
void deDecal::SetSize | ( | const decVector & | size | ) |
Set size.
void deDecal::SetSkin | ( | deSkin * | skin | ) |
Set skin.
void deDecal::SetTexture | ( | int | texture | ) |
Set texture number in the skin.
void deDecal::SetTransform | ( | const decTexMatrix2 & | matrix | ) |
Set texture coordinate transformation matrix.
void deDecal::SetVisible | ( | bool | visible | ) |
Set if decal is visible.
void deDecal::SnapshotBoneStatesFrom | ( | deComponent * | component | ) |
Copy current bone state from the provided component.