WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
Texture.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
manager.h
"
4
#include <glad/gl.h>
5
6
typedef
GLuint
TextureID
;
7
8
class
Texture
:
public
ManagedItem
9
{
10
public
:
11
int
w
,
h
;
12
GLuint
id
;
13
bool
compressed
;
14
GameFile
*
file
;
15
16
Texture
(
GameFile
*);
17
void
getPixels
(
unsigned
char
*buff,
unsigned
int
format=GL_RGBA);
18
void
load
();
19
20
private
:
21
void
decompressDXTC
(GLint format,
int
w
,
int
h
,
size_t
size,
unsigned
char
*src,
unsigned
char
*dest);
22
};
TextureID
GLuint TextureID
Definition
Texture.h:6
GameFile
Abstract base class representing a file within the game data archive.
Definition
GameFile.h:12
ManagedItem
Reference-counted item stored in a Manager.
Definition
manager.h:15
Texture
Definition
Texture.h:9
Texture::file
GameFile * file
Definition
Texture.h:14
Texture::h
int h
Definition
Texture.h:11
Texture::compressed
bool compressed
Definition
Texture.h:13
Texture::decompressDXTC
void decompressDXTC(GLint format, int w, int h, size_t size, unsigned char *src, unsigned char *dest)
Definition
Texture.cpp:304
Texture::getPixels
void getPixels(unsigned char *buff, unsigned int format=GL_RGBA)
Definition
Texture.cpp:14
Texture::w
int w
Definition
Texture.h:11
Texture::load
void load()
Definition
Texture.cpp:20
Texture::id
GLuint id
Definition
Texture.h:12
manager.h
Source
WoW
Rendering
Texture.h
Generated by
1.9.8