Drop IrrCompileConfig (#163)

This commit is contained in:
Vitaliy
2023-03-11 17:04:09 +03:00
committed by GitHub
parent 1d43ea17ca
commit 5a5a7d04b7
125 changed files with 288 additions and 1179 deletions

View File

@ -2,7 +2,6 @@
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#include "IrrCompileConfig.h"
static const char* const copyright = "Irrlicht Engine (c) 2002-2017 Nikolaus Gebhardt"; // put string in binary
@ -114,6 +113,26 @@ namespace core
namespace video
{
SMaterial IdentityMaterial;
extern "C" IRRLICHT_API bool IRRCALLCONV isDriverSupported(E_DRIVER_TYPE driver)
{
switch (driver) {
case EDT_NULL: return true;
#ifdef _IRR_COMPILE_WITH_OPENGL_
case EDT_OPENGL: return true;
#endif
#ifdef _IRR_COMPILE_WITH_OGLES1_
case EDT_OGLES1: return true;
#endif
#ifdef _IRR_COMPILE_WITH_OGLES2_
case EDT_OGLES2: return true;
#endif
#ifdef _IRR_COMPILE_WITH_WEBGL1_
case EDT_WEBGL1: return true;
#endif
default: return false;
}
}
}
} // end namespace irr