Shader program cleanup

This commit is contained in:
Dan Paulat 2022-10-02 22:28:56 -05:00
parent 7a07e0f698
commit 8d2fcf3802
2 changed files with 14 additions and 16 deletions

View file

@ -16,15 +16,13 @@ namespace qt
namespace gl
{
class ShaderProgramImpl;
class ShaderProgram
{
public:
explicit ShaderProgram(OpenGLFunctions& gl);
virtual ~ShaderProgram();
ShaderProgram(const ShaderProgram&) = delete;
ShaderProgram(const ShaderProgram&) = delete;
ShaderProgram& operator=(const ShaderProgram&) = delete;
ShaderProgram(ShaderProgram&&) noexcept;
@ -37,7 +35,9 @@ public:
void Use() const;
private:
std::unique_ptr<ShaderProgramImpl> p;
class Impl;
std::unique_ptr<Impl> p;
};
} // namespace gl