Character customization settings.
More...
#include <CustomCharSettings.h>
|
void | SetCharacterRegionPath (int slot, const std::string &path) |
| NOTE by andy: 2011.5.23 set character customization system region path setting allow different projects share the same CCS implementation and separate region paths for asset management. More...
|
|
void | SetCharTextureSize (int nCharacterTexSize=256, int nCartoonFaceTexSize=256) |
| the default character skin and cartoon face texture size. More...
|
|
void | SetCharRegionCoordinates (int nRegionIndex, int xpos, int ypos, int xsize, int ysize) |
| set char region coordinates. More...
|
|
|
static int | CharTexSize = 256 |
|
static int | FaceTexSize = 256 |
|
static CharRegionCoords | regions [] |
|
static const char * | DefaultCartoonFaceTexture [] |
|
static const char * | regionPaths [] |
|
static const int | slotOrder [] |
| slot order is so defined that the base body are updated one after another in the given order
|
|
static const int | slotOrderWithRobe [] |
|
static const float | shoulderscales [10][2] |
| This is not used. Unless you want to override attachment scale, defined in model. More...
|
|
Character customization settings.
like texture size and region path.
§ GetRegionPath()
const char * CCharCustomizeSysSetting::GetRegionPath |
( |
int |
i | ) |
|
|
static |
get region path
- Parameters
-
§ SetCharacterRegionPath()
void CCharCustomizeSysSetting::SetCharacterRegionPath |
( |
int |
slot, |
|
|
const std::string & |
path |
|
) |
| |
NOTE by andy: 2011.5.23 set character customization system region path setting allow different projects share the same CCS implementation and separate region paths for asset management.
- Parameters
-
slot | region slot id |
path | new region path NOTE: path string recorded in a static map <slot, path> |
§ SetCharRegionCoordinates()
void CCharCustomizeSysSetting::SetCharRegionCoordinates |
( |
int |
nRegionIndex, |
|
|
int |
xpos, |
|
|
int |
ypos, |
|
|
int |
xsize, |
|
|
int |
ysize |
|
) |
| |
set char region coordinates.
This function together with SetCharTextureSize makes CCS regions fully customizable via scripting interface. however, the region index are predefined and can not be changed.
- Parameters
-
nRegionIndex | see enumeration CharRegions. it must be smaller than NUM_REGIONS. |
xpos,ypos,xsize,ysize | see struct CharRegionCoords. defines a rect region within the skin or face texture. |
§ SetCharTextureSize()
void CCharCustomizeSysSetting::SetCharTextureSize |
( |
int |
nCharacterTexSize = 256 , |
|
|
int |
nCartoonFaceTexSize = 256 |
|
) |
| |
the default character skin and cartoon face texture size.
- Parameters
-
nCharacterTexSize | the character texture size. default to 256. 512 is also fine. |
nCartoonFaceTexSize | the character texture size. default to 256. 128 is also fine. |
- Note
- : One must call SetCharRegionCoordinates afterwards to change the region accordingly.
§ DefaultCartoonFaceTexture
const char * ParaEngine::CCharCustomizeSysSetting::DefaultCartoonFaceTexture |
|
static |
Initial value:=
{
"character/v3/CartoonFace/face/face_00.dds",
"",
"character/v3/CartoonFace/eye/eye_00.dds",
"character/v3/CartoonFace/eyebrow/eyebrow_00.dds",
"character/v3/CartoonFace/mouth/mouth_00.dds",
"character/v3/CartoonFace/nose/nose_00.dds",
"",
}
§ shoulderscales
const float ParaEngine::CCharCustomizeSysSetting::shoulderscales |
|
static |
Initial value:= {
{ 1.0f, 1.0f },
{ 1.0f, 1.0f },
{ 1.0f, 1.0f },
{ 1.0f, 1.0f },
{ 1.0f, 1.0f },
{ 1.0f, 1.0f },
{ 1.0f, 1.0f },
{ 1.0f, 1.0f },
{ 1.0f, 1.0f },
{ 1.0f, 1.0f }
}
This is not used. Unless you want to override attachment scale, defined in model.
The documentation for this class was generated from the following files:
- Client/trunk/ParaEngineClient/3dengine/CustomCharSettings.h
- Client/trunk/ParaEngineClient/3dengine/CustomCharSettings.cpp