1
0
Fork 0

source/GfxDriver/OpenGL/OpenGLDrv.h: Adding createShaderProgram()

This commit is contained in:
Henrik Hautakoski 2023-07-25 18:56:38 +02:00
parent c87bed2a59
commit 043afc4e3d
2 changed files with 9 additions and 0 deletions

View file

@ -1,5 +1,6 @@
#include "OpenGLDrv.h" #include "OpenGLDrv.h"
#include <GfxDriver/OpenGL/OpenGLShaderProgram.h>
#include <Graphics/GL/gl.h> #include <Graphics/GL/gl.h>
namespace sp { namespace sp {
@ -60,4 +61,8 @@ void OpenGLDrv::clearColorBuffer()
glClear(GL_COLOR_BUFFER_BIT); glClear(GL_COLOR_BUFFER_BIT);
} }
ShaderProgram* OpenGLDrv::createShaderProgram() {
return new OpenGLShaderProgram();
}
} // namespace sp } // namespace sp

View file

@ -6,6 +6,8 @@
namespace sp { namespace sp {
class ShaderProgram;
class OpenGLDrv : public GfxDriver class OpenGLDrv : public GfxDriver
{ {
public: public:
@ -24,6 +26,8 @@ public:
virtual void clearBuffer(GfxDriver::BufferFlags flags); virtual void clearBuffer(GfxDriver::BufferFlags flags);
virtual void clearColorBuffer(); virtual void clearColorBuffer();
virtual ShaderProgram* createShaderProgram();
}; };
} // namespace sp } // namespace sp