Added the definition of GL_FOG_COORDINATE_SOURCE to Fog.cpp.

Added #include<string> to the GLExtensions header.
This commit is contained in:
Robert Osfield 2002-08-20 12:29:35 +00:00
parent df9a899d9e
commit 36ad072e14
2 changed files with 6 additions and 1 deletions

View File

@ -10,6 +10,7 @@
#if defined(WIN32)
#include <windows.h>
#elif defined(__DARWIN_OSX__)
#include <string>
#include <mach-o/dyld.h>
#else
#include <dlfcn.h>

View File

@ -3,6 +3,10 @@
using namespace osg;
#ifndef GL_FOG_COORDINATE_SOURCE
#define GL_FOG_COORDINATE_SOURCE 0x8450
#endif
Fog::Fog()
{
_mode = EXP;
@ -29,6 +33,6 @@ void Fog::apply(State&) const
static bool fogCoordExtensionSuppoted = osg::isGLExtensionSupported("GL_EXT_fog_coord");
if (fogCoordExtensionSuppoted)
{
glFogi(GL_FOG_COORDINATE_SOURCE_EXT,_fogCoordinateSource);
glFogi(GL_FOG_COORDINATE_SOURCE,_fogCoordinateSource);
}
}