Commit cd7ad09b authored by bitplane's avatar bitplane

Burning's Video now compiles again in fast mode. Reported by puh

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2615 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 4141b295
...@@ -1490,17 +1490,6 @@ void CBurningVideoDriver::setMaterial(const SMaterial& material) ...@@ -1490,17 +1490,6 @@ void CBurningVideoDriver::setMaterial(const SMaterial& material)
} }
#ifdef SOFTWARE_DRIVER_2_LIGHTING
//! Sets the fog mode.
void CBurningVideoDriver::setFog(SColor color, E_FOG_TYPE fogType, f32 start,
f32 end, f32 density, bool pixelFog, bool rangeFog)
{
CNullDriver::setFog(color, fogType, start, end, density, pixelFog, rangeFog);
LightSpace.FogColor.setA8R8G8B8 ( color.color );
}
/*! /*!
Camera Position in World Space Camera Position in World Space
*/ */
...@@ -1524,6 +1513,16 @@ void CBurningVideoDriver::getCameraPosWorldSpace () ...@@ -1524,6 +1513,16 @@ void CBurningVideoDriver::getCameraPosWorldSpace ()
LightSpace.campos.w = 1.f; LightSpace.campos.w = 1.f;
} }
#ifdef SOFTWARE_DRIVER_2_LIGHTING
//! Sets the fog mode.
void CBurningVideoDriver::setFog(SColor color, E_FOG_TYPE fogType, f32 start,
f32 end, f32 density, bool pixelFog, bool rangeFog)
{
CNullDriver::setFog(color, fogType, start, end, density, pixelFog, rangeFog);
LightSpace.FogColor.setA8R8G8B8 ( color.color );
}
/*! /*!
applies lighting model applies lighting model
*/ */
......
...@@ -82,6 +82,9 @@ ...@@ -82,6 +82,9 @@
#elif defined ( BURNINGVIDEO_RENDERER_CE ) #elif defined ( BURNINGVIDEO_RENDERER_CE )
#define SOFTWARE_DRIVER_2_MIPMAPPING_MAX 4 #define SOFTWARE_DRIVER_2_MIPMAPPING_MAX 4
#define SOFTWARE_DRIVER_2_MIPMAPPING_LOD_BIAS 0 #define SOFTWARE_DRIVER_2_MIPMAPPING_LOD_BIAS 0
#else
#define SOFTWARE_DRIVER_2_MIPMAPPING_MAX 8
#define SOFTWARE_DRIVER_2_MIPMAPPING_LOD_BIAS 0
#endif #endif
#else #else
#define SOFTWARE_DRIVER_2_MIPMAPPING_MAX 1 #define SOFTWARE_DRIVER_2_MIPMAPPING_MAX 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment