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
6typedef GLuint TextureID;
7
8class Texture : public ManagedItem
9{
10public:
11 int w,h;
12 GLuint id;
15
17 void getPixels(unsigned char *buff, unsigned int format=GL_RGBA);
18 void load();
19
20private:
21 void decompressDXTC(GLint format, int w, int h, size_t size, unsigned char *src, unsigned char *dest);
22};
GLuint TextureID
Definition Texture.h:6
Abstract base class representing a file within the game data archive.
Definition GameFile.h:12
Reference-counted item stored in a Manager.
Definition manager.h:15
GameFile * file
Definition Texture.h:14
int h
Definition Texture.h:11
bool compressed
Definition Texture.h:13
void decompressDXTC(GLint format, int w, int h, size_t size, unsigned char *src, unsigned char *dest)
Definition Texture.cpp:304
void getPixels(unsigned char *buff, unsigned int format=GL_RGBA)
Definition Texture.cpp:14
int w
Definition Texture.h:11
void load()
Definition Texture.cpp:20
GLuint id
Definition Texture.h:12