Creating OpenGL utility class, consolidating number of OpenGL function objects

This commit is contained in:
Dan Paulat 2021-07-23 21:30:51 -05:00
parent c6a323247d
commit 59be110c10
10 changed files with 124 additions and 73 deletions

View file

@ -1,14 +1,14 @@
#pragma once
#include <scwx/qt/util/gl.hpp>
#ifdef _WIN32
#include <Windows.h>
# include <Windows.h>
#endif
#include <memory>
#include <string>
#include <GL/gl.h>
namespace scwx
{
namespace qt
@ -19,7 +19,7 @@ class ShaderProgramImpl;
class ShaderProgram
{
public:
explicit ShaderProgram();
explicit ShaderProgram(OpenGLFunctions& gl);
~ShaderProgram();
ShaderProgram(const ShaderProgram&) = delete;