mirror of
https://github.com/minetest/irrlicht.git
synced 2025-06-28 14:26:06 +02:00
Drop obsolete configuration macros
This commit is contained in:
@ -23,7 +23,7 @@
|
||||
|
||||
//! Maximum number of texture an SMaterial can have, up to 8 are supported by Irrlicht.
|
||||
#define _IRR_MATERIAL_MAX_TEXTURES_ 4
|
||||
|
||||
#define _IRR_COMPILE_WITH_GUI_
|
||||
|
||||
#ifdef _WIN32
|
||||
#define IRRCALLCONV __stdcall
|
||||
@ -36,25 +36,6 @@
|
||||
#endif
|
||||
|
||||
|
||||
#define _IRR_COMPILE_WITH_GUI_
|
||||
#define _IRR_COMPILE_WITH_LIBJPEG_
|
||||
#define _IRR_COMPILE_WITH_LIBPNG_
|
||||
#define _IRR_COMPILE_WITH_BILLBOARD_SCENENODE_
|
||||
#define _IRR_COMPILE_WITH_SKINNED_MESH_SUPPORT_
|
||||
#define _IRR_COMPILE_WITH_B3D_LOADER_
|
||||
#define _IRR_COMPILE_WITH_X_LOADER_
|
||||
#define _IRR_COMPILE_WITH_OBJ_LOADER_
|
||||
#define _IRR_COMPILE_WITH_BMP_LOADER_
|
||||
#define _IRR_COMPILE_WITH_JPG_LOADER_
|
||||
#define _IRR_COMPILE_WITH_PNG_LOADER_
|
||||
#define _IRR_COMPILE_WITH_TGA_LOADER_
|
||||
#define _IRR_COMPILE_WITH_JPG_WRITER_
|
||||
#define _IRR_COMPILE_WITH_PNG_WRITER_
|
||||
#define __IRR_COMPILE_WITH_ZIP_ARCHIVE_LOADER_
|
||||
#define _IRR_COMPILE_WITH_ZLIB_
|
||||
#define __IRR_HAS_S64
|
||||
|
||||
|
||||
#ifdef _DEBUG
|
||||
//! A few attributes are written in CSceneManager when _IRR_SCENEMANAGER_DEBUG is enabled
|
||||
// NOTE: Those attributes were used always until 1.8.0 and became a global define for 1.8.1
|
||||
|
@ -21,9 +21,7 @@ namespace core
|
||||
|
||||
const s32 ROUNDING_ERROR_S32 = 0;
|
||||
|
||||
#ifdef __IRR_HAS_S64
|
||||
const s64 ROUNDING_ERROR_S64 = 0;
|
||||
#endif
|
||||
const f32 ROUNDING_ERROR_f32 = 0.000001f;
|
||||
const f64 ROUNDING_ERROR_f64 = 0.00000001;
|
||||
|
||||
@ -186,7 +184,6 @@ namespace core
|
||||
return ROUNDING_ERROR_S32;
|
||||
}
|
||||
|
||||
#ifdef __IRR_HAS_S64
|
||||
template <>
|
||||
inline s64 roundingError()
|
||||
{
|
||||
@ -198,7 +195,6 @@ namespace core
|
||||
{
|
||||
return ROUNDING_ERROR_S64;
|
||||
}
|
||||
#endif
|
||||
|
||||
template <class T>
|
||||
inline T relativeErrorFactor()
|
||||
@ -310,13 +306,11 @@ namespace core
|
||||
return a <= tolerance;
|
||||
}
|
||||
|
||||
#ifdef __IRR_HAS_S64
|
||||
//! returns if a equals zero, taking rounding errors into account
|
||||
inline bool iszero(const s64 a, const s64 tolerance = 0)
|
||||
{
|
||||
return abs_(a) <= tolerance;
|
||||
}
|
||||
#endif
|
||||
|
||||
inline s32 s32_min(s32 a, s32 b)
|
||||
{
|
||||
@ -406,13 +400,11 @@ namespace core
|
||||
return static_cast<s32>(squareroot(static_cast<f32>(f)));
|
||||
}
|
||||
|
||||
#ifdef __IRR_HAS_S64
|
||||
// calculate: sqrt ( x )
|
||||
REALINLINE s64 squareroot(const s64 f)
|
||||
{
|
||||
return static_cast<s64>(squareroot(static_cast<f64>(f)));
|
||||
}
|
||||
#endif
|
||||
|
||||
// calculate: 1 / sqrt ( x )
|
||||
REALINLINE f64 reciprocal_squareroot(const f64 x)
|
||||
|
@ -38,13 +38,11 @@ typedef uint32_t u32;
|
||||
typedef int32_t s32;
|
||||
|
||||
|
||||
#ifdef __IRR_HAS_S64
|
||||
//! 64 bit unsigned variable.
|
||||
typedef uint64_t u64;
|
||||
|
||||
//! 64 bit signed variable.
|
||||
typedef int64_t s64;
|
||||
#endif // __IRR_HAS_S64
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user