LibreOffice Module vcl (master)  1
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
TextureState Class Reference

#include <TextureState.hxx>

Public Member Functions

 TextureState ()
 
void active (GLuint nTextureUnit)
 
void bind (GLuint nTexture)
 
void unbindAndDelete (GLuint nTexture)
 
void unbind (GLuint nTexture)
 

Static Public Member Functions

static void generate (GLuint &nTexture)
 

Private Attributes

GLuint mnCurrentTextureUnit
 
std::vector< GLuint > maBoundTextures
 

Detailed Description

Definition at line 16 of file TextureState.hxx.

Constructor & Destructor Documentation

TextureState::TextureState ( )
inline

Definition at line 23 of file TextureState.hxx.

Member Function Documentation

void TextureState::active ( GLuint  nTextureUnit)
inline

Definition at line 34 of file TextureState.hxx.

References CHECK_GL_ERROR.

void TextureState::bind ( GLuint  nTexture)
inline

Definition at line 45 of file TextureState.hxx.

References CHECK_GL_ERROR, and mnCurrentTextureUnit.

static void TextureState::generate ( GLuint &  nTexture)
inlinestatic

Definition at line 28 of file TextureState.hxx.

References CHECK_GL_ERROR.

void TextureState::unbind ( GLuint  nTexture)
inline

Definition at line 61 of file TextureState.hxx.

References i.

Referenced by unbindAndDelete().

void TextureState::unbindAndDelete ( GLuint  nTexture)
inline

Definition at line 55 of file TextureState.hxx.

References unbind().

Member Data Documentation

std::vector<GLuint> TextureState::maBoundTextures
private

Definition at line 20 of file TextureState.hxx.

GLuint TextureState::mnCurrentTextureUnit
private

Definition at line 19 of file TextureState.hxx.

Referenced by bind().


The documentation for this class was generated from the following file: