+
//------------------------------------------------------------------------------
// File : SkyTextureState.cpp
//------------------------------------------------------------------------------
if (0 == s_iNumTextureUnits)
{
int iNumTextureUnits = 0;
+#ifdef GL_ARB_multitexture
glGetIntegerv(GL_MAX_TEXTURE_UNITS_ARB, &iNumTextureUnits);
if (iNumTextureUnits > 0)
s_iNumTextureUnits = iNumTextureUnits;
else
s_iNumTextureUnits = 1;
+#endif
}
_pTextureUnitState = new TexState[s_iNumTextureUnits];
//GLVU::CheckForGLError("SkyTextureState::Activate(8)");
for (unsigned int i = 0; i < s_iNumTextureUnits; ++i)
{
+#ifdef GL_ARB_multitexture
if (s_iNumTextureUnits > 1)
glActiveTextureARB(GL_TEXTURE0_ARB + i);
+#endif
bool bEnabled = IsTextureEnabled(i);
if (pCurrent->IsTextureEnabled(i) != bEnabled)
{
}
//GLVU::CheckForGLError("SkyTextureState::Activate()");
}
+#ifdef GL_ARB_multitexture
if (s_iNumTextureUnits > 1)
glActiveTextureARB(GL_TEXTURE0_ARB);
+#endif
}
return SKYRESULT_OK;
}
//----------------------------------------------------------------------------
// $Id$
//============================================================================
+
+#include <simgear/compiler.h>
+
#include "camera.hpp"
-#include <iostream>
+#include STL_IOSTREAM
//----------------------------------------------------------------------------
// CONSTRUCTOR: defines a default camera system defined as (45 DEG FOV)