diff options
author | sfan5 <sfan5@live.de> | 2023-04-06 11:20:03 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2023-04-06 11:20:03 +0200 |
commit | 3a074e4124fa483fb3188b57d89e199f6d04b568 (patch) | |
tree | df7609b25b8a7020ca13cf6d869a862d9fab80de /source/Irrlicht/OpenGLES2/Driver.cpp | |
parent | 58a96b7d2399ede5e953518b784ecffd4751b765 (diff) | |
parent | 70ee4b05aa4a78809552e6bc6c3ff7cfe6c012af (diff) | |
download | irrlicht-3a074e4124fa483fb3188b57d89e199f6d04b568.tar.xz |
Merge branch 'opengl3' of https://github.com/numberZero/irrlicht
Diffstat (limited to 'source/Irrlicht/OpenGLES2/Driver.cpp')
-rw-r--r-- | source/Irrlicht/OpenGLES2/Driver.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/source/Irrlicht/OpenGLES2/Driver.cpp b/source/Irrlicht/OpenGLES2/Driver.cpp new file mode 100644 index 0000000..2b03464 --- /dev/null +++ b/source/Irrlicht/OpenGLES2/Driver.cpp @@ -0,0 +1,22 @@ +// Copyright (C) 2023 Vitaliy Lobachevskiy +// This file is part of the "Irrlicht Engine". +// For conditions of distribution and use, see copyright notice in Irrlicht.h + +#include "Driver.h" + +namespace irr { +namespace video { + + E_DRIVER_TYPE COpenGLES2Driver::getDriverType() const { + return EDT_OGLES2; + } + + IVideoDriver* createOGLES2Driver(const SIrrlichtCreationParameters& params, io::IFileSystem* io, IContextManager* contextManager) + { + COpenGLES2Driver* driver = new COpenGLES2Driver(params, io, contextManager); + driver->genericDriverInit(params.WindowSize, params.Stencilbuffer); // don't call in constructor, it uses virtual function calls of driver + return driver; + } + +} +} |