VAPOR3 3.9.4
|
Wrapper class for an OpenGL texture. More...
#include <Texture.h>
Public Member Functions | |
~Texture () | |
int | Generate () |
int | Generate (int filter) |
void | Delete () |
bool | Initialized () const |
void | Bind () const |
void | UnBind () const |
int | TexImage (int internalFormat, int width, int height, int depth, unsigned int format, unsigned int type, const void *data, int level=0) |
Static Public Member Functions | |
static unsigned int | GetDimsCount (unsigned int glTextureEnum) |
Protected Member Functions | |
Texture (unsigned int type) | |
Protected Attributes | |
unsigned int | _id = 0 |
unsigned int | _width = 0 |
unsigned int | _height = 0 |
unsigned int | _depth = 0 |
const unsigned int | _type |
const unsigned int | _nDims |
Friends | |
class | Framebuffer |
Wrapper class for an OpenGL texture.
This class is intended to be used as a member object for a renderer. Any use of this class (including the destructor and except the constructor) must occur inside the correct OpenGL context.
VAPoR::Texture::~Texture | ( | ) |
|
protected |
void VAPoR::Texture::Bind | ( | ) | const |
void VAPoR::Texture::Delete | ( | ) |
int VAPoR::Texture::Generate | ( | ) |
int VAPoR::Texture::Generate | ( | int | filter | ) |
|
static |
bool VAPoR::Texture::Initialized | ( | ) | const |
int VAPoR::Texture::TexImage | ( | int | internalFormat, |
int | width, | ||
int | height, | ||
int | depth, | ||
unsigned int | format, | ||
unsigned int | type, | ||
const void * | data, | ||
int | level = 0 |
||
) |
void VAPoR::Texture::UnBind | ( | ) | const |
|
friend |