mirror of
https://github.com/minetest/irrlicht.git
synced 2025-07-02 08:10:26 +02:00
Split new GL3/GLES2 drivers
The classes are tiny wrappers currently but should they be customized, they are there
This commit is contained in:
@ -25,19 +25,18 @@ namespace video
|
||||
class COpenGL3FixedPipelineRenderer;
|
||||
class COpenGL3Renderer2D;
|
||||
|
||||
class COpenGL3Driver : public CNullDriver, public IMaterialRendererServices, public COpenGL3ExtensionHandler
|
||||
class COpenGL3DriverBase : public CNullDriver, public IMaterialRendererServices, public COpenGL3ExtensionHandler
|
||||
{
|
||||
friend class COpenGLCoreTexture<COpenGL3Driver>;
|
||||
friend IVideoDriver* createOpenGL3Driver(const SIrrlichtCreationParameters& params, io::IFileSystem* io, IContextManager* contextManager);
|
||||
friend class COpenGLCoreTexture<COpenGL3DriverBase>;
|
||||
|
||||
protected:
|
||||
//! constructor (use createOpenGL3Driver instead)
|
||||
COpenGL3Driver(const SIrrlichtCreationParameters& params, io::IFileSystem* io, IContextManager* contextManager);
|
||||
COpenGL3DriverBase(const SIrrlichtCreationParameters& params, io::IFileSystem* io, IContextManager* contextManager);
|
||||
|
||||
public:
|
||||
|
||||
//! destructor
|
||||
virtual ~COpenGL3Driver();
|
||||
virtual ~COpenGL3DriverBase();
|
||||
|
||||
virtual bool beginScene(u16 clearFlag, SColor clearColor = SColor(255, 0, 0, 0), f32 clearDepth = 1.f, u8 clearStencil = 0,
|
||||
const SExposedVideoData& videoData = SExposedVideoData(), core::rect<s32>* sourceRect = 0) override;
|
||||
|
Reference in New Issue
Block a user