summaryrefslogtreecommitdiff
path: root/chisel/backends/opengl/shader.h
blob: 9db33e7fca713b318dbf476ba1997ad23bcffe94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include <string>
#include <glad/glad.h>

namespace gfx {
    class Shader {
        GLuint _shader_id;

    public:
        Shader(const std::string& text, int type);
        Shader(const Shader&& other) = delete;
        Shader(Shader&& other);
        ~Shader();

        GLuint shader_id();
    };
}