コード例 #1
0
ファイル: utils.cpp プロジェクト: JanKolomaznik/soglu
GLDisabler::~GLDisabler() 
{
	// TODO - check previous state
	SOGLU_ASSERT(isGLContextActive());
	GL_CHECKED_CALL(glEnable(mValue));
}
コード例 #2
0
ファイル: CubeMapCore.cpp プロジェクト: DerJJ/scg3
CubeMapCore::~CubeMapCore() {
  if (isGLContextActive()) {
    glDeleteTextures(1, &tex_);
  }
}
コード例 #3
0
ファイル: utils.cpp プロジェクト: JanKolomaznik/soglu
GLDisabler::GLDisabler(int aValue) 
	: mValue(aValue)
{
	SOGLU_ASSERT(isGLContextActive());
	GL_CHECKED_CALL(glDisable(mValue));
}