ezEngine  Milestone 7
ezGALContextGL::ScopedTextureBinding Class Reference

Texture binding that will reset itself when leaving the scope. More...

#include <ContextGL.h>

Public Member Functions

 ScopedTextureBinding (ezGALContextGL *pContext, ezGALTextureType::Enum textureType, glTextureId texture)
 

Private Attributes

ezGALContextGLm_pContext
 
ezGALTextureType::Enum m_textureType
 
glTextureId m_textureBefore
 
ezUInt32 m_uiUsedSlot
 

Detailed Description

Texture binding that will reset itself when leaving the scope.

Useful for different kind of resource allocation or manipulation where a buffer needs to be bind but the general state should not be affected.


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