The Texture class.
More...
#include <texture.h>
|
enum | { MIPMAPPING = 0x1,
RENDERBUFFER = 0x2,
LOADED = 0x4
} |
|
The Texture class.
Save Texture Data
- Id
- PixelData
- Width
- Height
- Depth
int Texture::getDepth |
( |
void |
| ) |
const |
getDepth
Return Texture depth size
- Returns
int Texture::getHeight |
( |
void |
| ) |
const |
getHeight
Return Texture height size
- Returns
const uint & Texture::getID |
( |
void |
| ) |
const |
const std::string & Texture::getName |
( |
void |
| ) |
const |
getName
Return Texture Name
- Returns
uchar * Texture::getPixelData |
( |
void |
| ) |
const |
getPixelData
Return Pixel Data
- type : unsigned char
- format: rgba
- Returns
GLenum Texture::getTarget |
( |
void |
| ) |
const |
getTarget
Return OpenGL Texture Target
- Returns
int Texture::getWidth |
( |
void |
| ) |
const |
getWidth
Return Texture width size
- Returns
bool Texture::hasState |
( |
uint |
state | ) |
const |
hasState
- Parameters
-
- Returns
void Texture::setDepth |
( |
int |
depth | ) |
|
setDepth
Set Texture Depth
- Parameters
-
void Texture::setFloatPixelData |
( |
float * |
data | ) |
|
setFloatPixelData
Set Float Data
- Parameters
-
void Texture::setHeight |
( |
int |
height | ) |
|
setHeight
Set Texture Height
- Parameters
-
void Texture::setId |
( |
uint |
id | ) |
|
setId
Set Generated Texture Id
- Parameters
-
void Texture::setName |
( |
const std::string & |
texture_name | ) |
|
setName
Set Texture Name
- Parameters
-
void Texture::setPixelData |
( |
uchar * |
data | ) |
|
setPixelData
Set Pixel Data
- type : usigned char
- format: rgba - 1 pixel
- Parameters
-
void Texture::setTarget |
( |
uint |
target | ) |
|
setTarget
set OpenGL Target for bindTexture( target , .. )
- Parameters
-
void Texture::setWidth |
( |
int |
width | ) |
|
setWidth
Set Texture Width
- Parameters
-
The documentation for this class was generated from the following files:
- include/Container/texture.h
- Container/Texture.cpp