jubilant-funicular
|
represents a texture (tied to a specific GL context) More...
#include <GLTexture.h>
Public Member Functions | |
GLTexture (const RawTexture &raw, GLint minFilt=GL_LINEAR_MIPMAP_LINEAR, GLint magFilt=GL_LINEAR) | |
void | init (const RawTexture &raw, GLint minFilt=GL_LINEAR_MIPMAP_LINEAR, GLint magFilt=GL_LINEAR) |
bool | is_valid () const |
bool | operator== (const GLTexture &rhs) const |
bool | operator< (const GLTexture &rhs) const |
GLTexture | operator+ (const GLTexture &rhs) const |
calls combine_horizontal | |
GLTexture | operator* (const GLTexture &rhs) const |
calls combine_vertical (not sure how I feel about making this an operator) | |
void | destroy () |
Deletes this texture. | |
Static Public Member Functions | |
static GLTexture | no_texture () |
static GLTexture | combine_horizontal (const GLTexture &lhs, const GLTexture &rhs) |
Creates a new texture that is the result of placing lhs and rhs side by side. | |
static GLTexture | combine_vertical (const GLTexture &lhs, const GLTexture &rhs) |
Public Attributes | |
GLuint | id |
the id of the texture | |
GLint | width |
the width and height, respectively, of the texture | |
GLint | height |
represents a texture (tied to a specific GL context)
Definition at line 24 of file GLTexture.h.