ezEngine  Milestone 7
ezGALContextGL::ScopedBufferBinding Class Reference

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

#include <ContextGL.h>

Public Member Functions

 ScopedBufferBinding (ezGALContextGL *pContext, GLBufferBinding::Enum binding, glBufferId buffer)
 

Private Attributes

ezGALContextGLm_pContext
 
GLBufferBinding::Enum m_binding
 
glBufferId m_bufferBefore
 

Detailed Description

Buffer 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: