WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
CharTexture Class Reference

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 SoftwareImagegameFileToQImage (GameFile *file)
 

Private Attributes

unsigned int layoutSizeId
 
std::vector< CharTextureComponentm_components
 

Static Private Attributes

static std::map< int, std::pair< LayoutSize, std::map< int, CharRegionCoords > > > LAYOUTS
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ CharTexture()

CharTexture::CharTexture ( unsigned int  _layoutSizeId = 0)
inlineexplicit

Definition at line 51 of file CharTexture.h.

Member Function Documentation

◆ addComponent()

void CharTexture::addComponent ( CharTextureComponent  c)
inline

Definition at line 57 of file CharTexture.h.

◆ addLayer()

void CharTexture::addLayer ( GameFile file,
int  region,
int  layer,
int  blendMode = 1 
)

Definition at line 19 of file CharTexture.cpp.

Here is the caller graph for this function:

◆ burnComponent()

void CharTexture::burnComponent ( SoftwareImage destImage,
CharTextureComponent ct 
) const
private

Definition at line 120 of file CharTexture.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ compose()

void CharTexture::compose ( GLuint  texID)

Definition at line 36 of file CharTexture.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ gameFileToQImage()

SoftwareImage * CharTexture::gameFileToQImage ( GameFile file)
staticprivate

Definition at line 162 of file CharTexture.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initRegions()

void CharTexture::initRegions ( )
static

Definition at line 65 of file CharTexture.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ reset()

void CharTexture::reset ( unsigned int  _layoutSizeId)

Definition at line 28 of file CharTexture.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ LAYOUTS

std::map< int, std::pair< LayoutSize, std::map< int, CharRegionCoords > > > CharTexture::LAYOUTS
staticprivate

Definition at line 70 of file CharTexture.h.

◆ layoutSizeId

unsigned int CharTexture::layoutSizeId
private

Definition at line 68 of file CharTexture.h.

◆ m_components

std::vector<CharTextureComponent> CharTexture::m_components
private

Definition at line 69 of file CharTexture.h.


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