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

face group is similar to render pass in ParaXModel, or sub mesh in StaticMesh. More...

#include <SortedFaceGroups.h>

Public Member Functions

void UpdateCenterPos ()
 update the center position based on the vertices in the groups. More...
 

Public Attributes

bool m_alphaBlending
 
bool m_alphaTesting
 
bool m_disableZWrite
 
bool m_bHasLighting
 
bool m_bAdditive
 
bool m_bSkinningAni
 
TextureEntitym_pTexture
 
ParaMaterial m_material
 
int m_order
 
Vector3 m_vCenterPos
 
int m_nNumTriangles
 
vector< Vector3m_vertices
 
vector< Vector3m_normals
 
vector< Vector2m_UVs
 
vector< uint32 > m_vertexWeights
 
vector< uint32 > m_boneIndices
 
float m_stripLength
 

Detailed Description

face group is similar to render pass in ParaXModel, or sub mesh in StaticMesh.

it contains static data. both ParaXModel and StaticMesh stores face group (for sorting) in this format. Each face group contains one or several triangle strips, one center of mass(the average position of all vertex points in object space), one texture, a set of rendering parameters(such as z-write, z-test, blending, etc)

Member Function Documentation

§ UpdateCenterPos()

void ParaEngine::CFaceGroup::UpdateCenterPos ( )

update the center position based on the vertices in the groups.


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