mirror of
https://github.com/minetest/irrlicht.git
synced 2024-11-14 03:33:49 +01:00
8dd8652f5f
The classes are tiny wrappers currently but should they be customized, they are there
23 lines
682 B
C++
23 lines
682 B
C++
// 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;
|
|
}
|
|
|
|
}
|
|
}
|