Code: Select all
//! Adds two colors, result is clamped to 0..255 values
/** \param other Color to add to this color
\return Addition of the two colors, clamped to 0..255 values */
SColor operator+(const SColor& other) const
{
return SColor(core::min_(getAlpha() + other.getAlpha(), 255u),
core::min_(getRed() + other.getRed(), 255u),
core::min_(getGreen() + other.getGreen(), 255u),
core::min_(getBlue() + other.getBlue(), 255u));
}
4 others are conflicts with the irrmath.h the rest are declaration errors except the last one which is:c:\users\****\desktop\c++\irrlicht-1.4.2\include\scolor.h(279) : error C2780: 'const T &__cdecl irr::core::min_(const T &,const T &,const T &)' : expects 3 arguments - 2 provided
c:\users\****\desktop\c++\irrlicht-1.4.2\include\irrmath.h(80) : see declaration of 'min_'
c:\users\jake\desktop\c++\irrlicht-1.4.2\include\irrxml.h(538) : fatal error C1506: unrecoverable block scoping error
Error executing cl.exe.
I have not edited any files, and irrlicht is the first engine I have added to this computer. Also all MSV 6.0 options are at their defaults.
Thanks[/quote]