mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-10-08 23:41:06 +00:00
Eliminating obsolete #ifdefs and friends (#26)
The following options have been applied globally, using unifdef(1): ```c #undef BBGE_BUILD_DIRECTX #define BBGE_BUILD_OPENGL 1 #define GL_GLEXT_LEGACY 1 #define HAVE_PUTENV 1 #define TIXML_USE_STL 1 #define BBGE_BUILD_SDL 1 ```
This commit is contained in:
parent
dff33b0530
commit
276265be1d
54 changed files with 1 additions and 2248 deletions
|
@ -177,7 +177,6 @@ void AfterEffectManager::render()
|
|||
{
|
||||
assert(core->frameBuffer.isInited());
|
||||
|
||||
#ifdef BBGE_BUILD_OPENGL
|
||||
glPushMatrix();
|
||||
|
||||
glDisable (GL_ALPHA_TEST);
|
||||
|
@ -191,12 +190,10 @@ void AfterEffectManager::render()
|
|||
renderGrid();
|
||||
//renderGridPoints();
|
||||
glPopMatrix();
|
||||
#endif
|
||||
}
|
||||
|
||||
void AfterEffectManager::renderGrid()
|
||||
{
|
||||
#ifdef BBGE_BUILD_OPENGL
|
||||
|
||||
int firstShader = -1;
|
||||
int lastShader = -1;
|
||||
|
@ -355,12 +352,10 @@ void AfterEffectManager::renderGrid()
|
|||
//glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
|
||||
//if (bRenderGridPoints)
|
||||
// renderGridPoints();
|
||||
#endif
|
||||
}
|
||||
|
||||
void AfterEffectManager::renderGridPoints()
|
||||
{
|
||||
#ifdef BBGE_BUILD_OPENGL
|
||||
glColor4f(0.0f,0.0f,0.0f,1.0f);
|
||||
for (int i = 0; i < (xDivs); i++)
|
||||
{
|
||||
|
@ -374,7 +369,6 @@ void AfterEffectManager::renderGridPoints()
|
|||
glEnd();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void AfterEffectManager::unloadDevice()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue