My Project
Public Member Functions | Public Attributes | List of all members
ParaEngine::CFaceGroupInstance Class Reference

an instance of the face group: it contains the face group static data, and per-instance data, such as group to camera distance, group transform. More...

#include <SortedFaceGroups.h>

Public Member Functions

 CFaceGroupInstance (const Matrix4 *pMat, CFaceGroup *faceGroup)
 

Public Attributes

float m_fToCameraDistSq
 distance square to camera. More...
 
Matrix4 m_transform
 transform of the face group instance. More...
 
Vector2 m_vUVOffset
 in case there is an UV animation applied to this face group. More...
 
Vector3 m_vUVRotate
 
Vector2 m_vUVScale
 
CFaceGroupm_facegroup
 pointer to the data of the face group. More...
 
float m_fAlpha
 the alpha value in [0,1]
 
bool m_UVRgbAnim
 
Bonem_bones
 

Detailed Description

an instance of the face group: it contains the face group static data, and per-instance data, such as group to camera distance, group transform.

please note that only a single transform matrix is supported. For skinned ParaXModel, it will be the first bone.

Member Data Documentation

§ m_facegroup

CFaceGroup* ParaEngine::CFaceGroupInstance::m_facegroup

pointer to the data of the face group.

§ m_fToCameraDistSq

float ParaEngine::CFaceGroupInstance::m_fToCameraDistSq

distance square to camera.

this value is calculated on the fly

§ m_transform

Matrix4 ParaEngine::CFaceGroupInstance::m_transform

transform of the face group instance.

§ m_vUVOffset

Vector2 ParaEngine::CFaceGroupInstance::m_vUVOffset

in case there is an UV animation applied to this face group.

such as transparent texture based water pools, etc. in most cases, this is (0,0).


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