]> git.lizzy.rs Git - irrlicht.git/blob - source/Irrlicht/OpenGL3/Driver.cpp
Split new GL3/GLES2 drivers
[irrlicht.git] / source / Irrlicht / OpenGL3 / Driver.cpp
1 // Copyright (C) 2023 Vitaliy Lobachevskiy
2 // This file is part of the "Irrlicht Engine".
3 // For conditions of distribution and use, see copyright notice in Irrlicht.h
4
5 #include "Driver.h"
6
7 namespace irr {
8 namespace video {
9
10         E_DRIVER_TYPE COpenGL3Driver::getDriverType() const {
11                 return EDT_OPENGL3;
12         }
13
14         IVideoDriver* createOpenGL3Driver(const SIrrlichtCreationParameters& params, io::IFileSystem* io, IContextManager* contextManager)
15         {
16                 COpenGL3Driver* driver = new COpenGL3Driver(params, io, contextManager);
17                 driver->genericDriverInit(params.WindowSize, params.Stencilbuffer);     // don't call in constructor, it uses virtual function calls of driver
18                 return driver;
19         }
20
21 }
22 }