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

data structure for a cartoon face More...

#include <CustomCharFace.h>

Public Member Functions

 CartoonFace (FaceComponent *_components)
 
void SetModified (bool bModified=true)
 so the cartoon face will be rebuilt the next time the model is refreshed. More...
 
void Reset ()
 set all components to their default settings. More...
 
std::string makeComponentTexture (int region, const char *name)
 make component texture. More...
 
void compose (asset_ptr< TextureEntity > &tex, CharModelInstance *pCharInst)
 build the synthesized texture, and save the result into the tex texture entity More...
 
FaceComponentGetComponent (int index)
 get a given face component More...
 
const string & GetCacheFileName ()
 the cached file name is created from the concatenated string of component.names. More...
 
void GetFaceComponents (std::vector< FaceTextureComponent > &layers)
 

Public Attributes

FaceComponent components [CFS_TOTAL_NUM]
 
bool m_bNeedUpdate
 

Detailed Description

data structure for a cartoon face

Member Function Documentation

§ compose()

void CartoonFace::compose ( asset_ptr< TextureEntity > &  tex,
CharModelInstance pCharInst 
)

build the synthesized texture, and save the result into the tex texture entity

Parameters
tex[out] pointer to the texture

§ GetCacheFileName()

const string & CartoonFace::GetCacheFileName ( )

the cached file name is created from the concatenated string of component.names.

§ GetComponent()

FaceComponent& ParaEngine::CartoonFace::GetComponent ( int  index)
inline

get a given face component

Parameters
indextype of CartoonFaceSlots

§ makeComponentTexture()

std::string CartoonFace::makeComponentTexture ( int  region,
const char *  name 
)

make component texture.

this function is similar to makeItemTexture except that it is always unisex.

Parameters
regionthe texture region index.
nameit is the tex1 read from the cartoon face component database

§ Reset()

void CartoonFace::Reset ( )

set all components to their default settings.

§ SetModified()

void CartoonFace::SetModified ( bool  bModified = true)

so the cartoon face will be rebuilt the next time the model is refreshed.


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