My Project
Public Types | Public Member Functions | Public Attributes | List of all members
ParaEngine::AlphaPostRenderObject Struct Reference

for post rendering object with alpha. More...

#include <SceneState.h>

Inheritance diagram for ParaEngine::AlphaPostRenderObject:
ParaEngine::PostRenderObject

Public Types

enum  ALPHA_ANIM { ALPHA_INCREASE_ANIM, ALPHA_DECREASE_ANIM, ALPHA_NO_ANIM }
 alpha animation More...
 

Public Member Functions

 AlphaPostRenderObject (CBaseObject *pRenderObject, float fObjectToCameraDistance, int nOccluded=0, float fAlpha=1.f, ALPHA_ANIM nAlphaAnimMethod=ALPHA_NO_ANIM)
 
- Public Member Functions inherited from ParaEngine::PostRenderObject
 PostRenderObject (CBaseObject *pRenderObject, float fObjectToCameraDistance, int nOccluded=0)
 create a new post render object. More...
 
bool IsOccluded () const
 return true if occluded
 

Public Attributes

float m_fAlpha
 
ALPHA_ANIM m_nAlphaAnimMethod
 alpha animation method.
 
- Public Attributes inherited from ParaEngine::PostRenderObject
float m_fObjectToCameraDistance
 
CBaseObjectm_pRenderObject
 
int m_nOccluded
 whether this object is occluded. default to 0, which means undetermined.
 

Detailed Description

for post rendering object with alpha.

such is usually for transparent objects, which will be drawn from back to front according to its object-camera distance

Member Enumeration Documentation

§ ALPHA_ANIM

alpha animation

Enumerator
ALPHA_DECREASE_ANIM 

increase the alpha value, if it is 1.0f, it will be removed from the list.

ALPHA_NO_ANIM 

decrease the alpha value, if it is 0.0f, it will be removed from the list.


The documentation for this struct was generated from the following files: