Drag[en]gine Game Engine  1.0
deEffectColorMatrix Class Reference

Effect Color Matrix Class. More...

#include <deEffectColorMatrix.h>

Inheritance diagram for deEffectColorMatrix:
deEffect deResource deObject

Public Member Functions

Management
const decColorMatrixGetColorMatrix () const
 
void SetColorMatrix (const decColorMatrix &colorMatrix)
 
Visiting
virtual void Visit (deEffectVisitor *visitor)
 
- Public Member Functions inherited from deEffect
bool GetEnabled () const
 
void SetEnabled (bool enabled)
 
deBaseGraphicEffectGetGraphicEffect () const
 
void SetGraphicEffect (deBaseGraphicEffect *graEffect)
 
 deEffect (deEffectManager *manager)
 
- Public Member Functions inherited from deResource
deResourceManagerGetResourceManager () const
 Resource manager or NULL if resource is leaking. More...
 
deEngineGetEngine () const
 Game engine object from resource manager. More...
 
deResourceGetLLManagerPrev () const
 Previous resource in the resource manager linked list. More...
 
void SetLLManagerPrev (deResource *resource)
 Set next resource in the resource manager linked list. More...
 
deResourceGetLLManagerNext () 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

 deEffectColorMatrix (deEffectManager *manager)
 
virtual ~deEffectColorMatrix ()
 Clean up color matrix effect. More...
 

Additional Inherited Members

- Protected Member Functions inherited from deEffect
virtual ~deEffect ()
 Clean up world. More...
 
- Protected Member Functions inherited from deResource
virtual ~deResource ()
 Clean up resource. More...
 
- Protected Member Functions inherited from deObject
virtual ~deObject ()
 Clean up object. More...
 

Detailed Description

Effect Color Matrix Class.

Color Matrix effects are post processing effects that manipulate the final image after rendering. Every pixel is transformed by a given color matrix. This transformation is a linear transformation. This effect is best used as the last effect in an effect chain since most graphic modules can carry out such a transform as part of the final image rendering in hardware.

Author
Pl├╝ss Roland
Version
1.0
Date
2008

Constructor & Destructor Documentation

◆ deEffectColorMatrix()

deEffectColorMatrix::deEffectColorMatrix ( deEffectManager manager)

Creates a new color matrix effect.

◆ ~deEffectColorMatrix()

virtual deEffectColorMatrix::~deEffectColorMatrix ( )
protectedvirtual

Clean up color matrix effect.

Note
Subclasses should set their destructor protected too to avoid users accidently deleting a reference counted object through the object pointer. Only FreeReference() is allowed to delete the object.

Member Function Documentation

◆ GetColorMatrix()

const decColorMatrix& deEffectColorMatrix::GetColorMatrix ( ) const
inline

Retrieves the color matrix.

References SetColorMatrix(), and Visit().

◆ SetColorMatrix()

void deEffectColorMatrix::SetColorMatrix ( const decColorMatrix colorMatrix)

Sets the color matrix.

Referenced by GetColorMatrix().

◆ Visit()

virtual void deEffectColorMatrix::Visit ( deEffectVisitor visitor)
virtual

Visits the effect.

Reimplemented from deEffect.

Referenced by GetColorMatrix().


The documentation for this class was generated from the following file: