forked from Mirrorlandia_minetest/irrlicht
Restore isDriverSupported, but in a cpp file
This commit is contained in:
parent
6de0afa8b3
commit
5f76be9380
@ -14,6 +14,7 @@
|
|||||||
#include "ICursorControl.h"
|
#include "ICursorControl.h"
|
||||||
#include "ITimer.h"
|
#include "ITimer.h"
|
||||||
#include "IOSOperator.h"
|
#include "IOSOperator.h"
|
||||||
|
#include "IrrCompileConfig.h"
|
||||||
|
|
||||||
namespace irr
|
namespace irr
|
||||||
{
|
{
|
||||||
@ -34,6 +35,7 @@ namespace irr
|
|||||||
|
|
||||||
namespace video {
|
namespace video {
|
||||||
class IContextManager;
|
class IContextManager;
|
||||||
|
extern "C" IRRLICHT_API bool IRRCALLCONV isDriverSupported(E_DRIVER_TYPE driver);
|
||||||
} // end namespace video
|
} // end namespace video
|
||||||
|
|
||||||
//! The Irrlicht device. You can create it with createDevice() or createDeviceEx().
|
//! The Irrlicht device. You can create it with createDevice() or createDeviceEx().
|
||||||
@ -310,7 +312,7 @@ namespace irr
|
|||||||
for a configuration requested when creating the device. */
|
for a configuration requested when creating the device. */
|
||||||
static bool isDriverSupported(video::E_DRIVER_TYPE driver)
|
static bool isDriverSupported(video::E_DRIVER_TYPE driver)
|
||||||
{
|
{
|
||||||
return true;
|
return video::isDriverSupported(driver);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -113,6 +113,26 @@ namespace core
|
|||||||
namespace video
|
namespace video
|
||||||
{
|
{
|
||||||
SMaterial IdentityMaterial;
|
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
|
} // end namespace irr
|
||||||
|
Loading…
Reference in New Issue
Block a user