|
WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
|
Composites multiple texture layers into a single character skin texture. More...
#include <CharTexture.h>
Public Member Functions | |
| CharTexture (unsigned int _layoutSizeId=0) | |
| void | addLayer (GameFile *file, int region, int layer, int blendMode=1) |
| void | addComponent (CharTextureComponent c) |
| void | compose (GLuint texID) |
| void | reset (unsigned int _layoutSizeId) |
Static Public Member Functions | |
| static void | initRegions () |
Private Member Functions | |
| void | burnComponent (SoftwareImage &destImage, CharTextureComponent &) const |
Static Private Member Functions | |
| static SoftwareImage * | gameFileToQImage (GameFile *file) |
Private Attributes | |
| unsigned int | layoutSizeId |
| std::vector< CharTextureComponent > | m_components |
Static Private Attributes | |
| static std::map< int, std::pair< LayoutSize, std::map< int, CharRegionCoords > > > | LAYOUTS |
Composites multiple texture layers into a single character skin texture.
Layers (skin, face, hair, clothing, etc.) are blended together and uploaded to an OpenGL texture via compose().
Definition at line 48 of file CharTexture.h.
|
inlineexplicit |
Definition at line 51 of file CharTexture.h.
|
inline |
Definition at line 57 of file CharTexture.h.
| void CharTexture::addLayer | ( | GameFile * | file, |
| int | region, | ||
| int | layer, | ||
| int | blendMode = 1 |
||
| ) |
|
private |
Definition at line 120 of file CharTexture.cpp.
| void CharTexture::compose | ( | GLuint | texID | ) |
Definition at line 36 of file CharTexture.cpp.
|
staticprivate |
Definition at line 162 of file CharTexture.cpp.
|
static |
Definition at line 65 of file CharTexture.cpp.
| void CharTexture::reset | ( | unsigned int | _layoutSizeId | ) |
|
staticprivate |
Definition at line 70 of file CharTexture.h.
|
private |
Definition at line 68 of file CharTexture.h.
|
private |
Definition at line 69 of file CharTexture.h.