aboutsummaryrefslogtreecommitdiff
path: root/source/Irrlicht/OpenGL3/Driver.cpp
diff options
context:
space:
mode:
authornumzero <numzer0@yandex.ru>2023-03-03 20:29:36 +0300
committernumzero <numzer0@yandex.ru>2023-03-03 20:29:36 +0300
commit8dd8652f5ff3b046229a3e8ce299271a209375f3 (patch)
treed037b2e7d7da68803dc52f41b7b550c131d69aa8 /source/Irrlicht/OpenGL3/Driver.cpp
parent29320653463045fad20d6681cef563a37a1aeb9e (diff)
downloadirrlicht-8dd8652f5ff3b046229a3e8ce299271a209375f3.tar.xz
Split new GL3/GLES2 drivers
The classes are tiny wrappers currently but should they be customized, they are there
Diffstat (limited to 'source/Irrlicht/OpenGL3/Driver.cpp')
-rw-r--r--source/Irrlicht/OpenGL3/Driver.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/source/Irrlicht/OpenGL3/Driver.cpp b/source/Irrlicht/OpenGL3/Driver.cpp
new file mode 100644
index 0000000..925c6ea
--- /dev/null
+++ b/source/Irrlicht/OpenGL3/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 COpenGL3Driver::getDriverType() const {
+ return EDT_OPENGL3;
+ }
+
+ IVideoDriver* createOpenGL3Driver(const SIrrlichtCreationParameters& params, io::IFileSystem* io, IContextManager* contextManager)
+ {
+ COpenGL3Driver* driver = new COpenGL3Driver(params, io, contextManager);
+ driver->genericDriverInit(params.WindowSize, params.Stencilbuffer); // don't call in constructor, it uses virtual function calls of driver
+ return driver;
+ }
+
+}
+}