#include <IoTextureSet.h>
Inheritance diagram for OpenGL::IoTextureSet:
Public Member Functions | |
IoTextureSet (unsigned int width, unsigned int height, GLenum target, GLint internalFormat) | |
IoTextureSet (std::pair< unsigned int, unsigned int > dimensions, GLenum target, GLint internalFormat) | |
unsigned int | addPrimaryTexture (const std::string &description) |
unsigned int | addSecondaryTexture (unsigned int width, unsigned int height, GLenum target, GLint internalFormat, const std::string &description) |
unsigned int | importSecondaryTexture (IoTextureSet *textureSet, unsigned int textureId, const std::string &description) |
void | resizeSecondaryTexture (unsigned int textureId, unsigned int width, unsigned int height) |
void | clearTexture (unsigned int textureId) |
std::vector< Util::Color > | getTexture (unsigned int textureId) |
void | fillTexture (unsigned int textureId, GLenum format, GLenum type, const GLvoid *pixels) |
void | swap () |
void | setActiveTexture (unsigned int textureId, bool swap=false) |
GLuint | lookup (unsigned int textureId) const |
unsigned int | getPrimaryWidth () const |
unsigned int | getPrimaryHeight () const |
GLenum | getPrimaryTarget () const |
GLint | getPrimaryInternalFormat () const |
unsigned int | getWidth (unsigned int textureId) const |
unsigned int | getHeight (unsigned int textureId) const |
GLenum | getTarget (unsigned int textureId) const |
GLint | getInternalFormat (unsigned int textureId) const |
std::string | getDescription (unsigned int textureId) const |
std::vector< unsigned int > | getPrimaryTextures () const |
std::vector< unsigned int > | getSecondaryTextures () const |
unsigned int | getPrimaryTextureCount () const |
unsigned int | getSecondaryTextureCount () const |
Static Public Member Functions | |
static void | bindFbo () |
static void | disableFbo () |
|
Default constructor.
|
|
Constructor using dimensions.
|
|
Adds a primary texture.
|
|
Adds a secondary texture.
|
|
Binds the Frame Buffer Object. Results from the fragment shaders are written to the active texture (render target) instead of the frame buffer. |
|
Clears a texture by setting all channel values to 0.
|
|
Disables the Frame Buffer Object. |
|
Fills a texture with pixel values.
|
|
Returns the description of a given texture.
|
|
Returns the height of a given texture.
|
|
Returns the internal format of a given texture.
|
|
Returns the height of the primary textures.
|
|
Returns the internal format of the primary textures.
|
|
Returns the target of the primary textures.
|
|
Returns the number of primary textures.
|
|
Returns the primary texture identifiers.
|
|
Returns the width of the primary textures.
|
|
Returns the number of secondary textures.
|
|
Returns the secondary texture identifiers.
|
|
Returns the target of a given texture.
|
|
Gets the contents of a texture.
|
|
Returns the width of a given texture.
|
|
Imports a secondary texture from a primary or secondary texture in another texture set.
|
|
Performs a lookup to retrieve the real GLuint texture.
|
|
Resizes a secondary texture owned by this IoTextureSet.
|
|
Sets a texture as the active texture on the Frame Buffer Object. The active texture is then the current render target.
|
|
Swaps temporary texture with swap texture (active texture). |