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

#include <Texture.h>

Inheritance diagram for Texture:
[legend]
Collaboration diagram for Texture:
[legend]

Public Member Functions

 Texture (GameFile *)
 
void getPixels (unsigned char *buff, unsigned int format=GL_RGBA)
 
void load ()
 
- Public Member Functions inherited from ManagedItem
 ManagedItem (std::string n)
 
virtual ~ManagedItem ()
 
void addref ()
 
bool delref ()
 
void setItemName (std::string name)
 
const std::string & itemName () const
 
int refCount ()
 

Public Attributes

int w
 
int h
 
GLuint id
 
bool compressed
 
GameFilefile
 

Private Member Functions

void decompressDXTC (GLint format, int w, int h, size_t size, unsigned char *src, unsigned char *dest)
 

Detailed Description

Definition at line 8 of file Texture.h.

Constructor & Destructor Documentation

◆ Texture()

Texture::Texture ( GameFile f)

Definition at line 10 of file Texture.cpp.

Member Function Documentation

◆ decompressDXTC()

void Texture::decompressDXTC ( GLint  format,
int  w,
int  h,
size_t  size,
unsigned char *  src,
unsigned char *  dest 
)
private

Definition at line 304 of file Texture.cpp.

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

◆ getPixels()

void Texture::getPixels ( unsigned char *  buff,
unsigned int  format = GL_RGBA 
)

Definition at line 14 of file Texture.cpp.

◆ load()

void Texture::load ( )

Definition at line 20 of file Texture.cpp.

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

Member Data Documentation

◆ compressed

bool Texture::compressed

Definition at line 13 of file Texture.h.

◆ file

GameFile* Texture::file

Definition at line 14 of file Texture.h.

◆ h

int Texture::h

Definition at line 11 of file Texture.h.

◆ id

GLuint Texture::id

Definition at line 12 of file Texture.h.

◆ w

int Texture::w

Definition at line 11 of file Texture.h.


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