Exemplo n.º 1
0
GLDisabler::~GLDisabler() 
{
	// TODO - check previous state
	SOGLU_ASSERT(isGLContextActive());
	GL_CHECKED_CALL(glEnable(mValue));
}
Exemplo n.º 2
0
CubeMapCore::~CubeMapCore() {
  if (isGLContextActive()) {
    glDeleteTextures(1, &tex_);
  }
}
Exemplo n.º 3
0
GLDisabler::GLDisabler(int aValue) 
	: mValue(aValue)
{
	SOGLU_ASSERT(isGLContextActive());
	GL_CHECKED_CALL(glDisable(mValue));
}