summaryrefslogtreecommitdiff
path: root/chisel/backends/opengl/program.h
blob: 27b131ac343225a3ef3a9f1dbd719cb86cae3cf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once

#include "shader.h"

#include <glad/glad.h>

namespace gfx {
    class Program {
        GLuint _program_id;

    public:
        Program();
        Program(const Program&& other) = delete;
        Program(Program&& other);
        ~Program();
        void attach(Shader& shader);
        void link();
        void use();

        GLuint program_id();
    };
}