aboutsummaryrefslogtreecommitdiff
path: root/src/client/render/program.hh
blob: 10ae19c4322254186efc04cf4f162bbaa072397d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef CLIENT_RENDER_PROGRAM_HH_
#define CLIENT_RENDER_PROGRAM_HH_

#include <stdexcept>
#include <string_view>

#include <epoxy/glx.h>

#include "shared/shared.hh"

namespace client {
namespace render {

class program {
private:
    GLuint index;

public:
    program(const std::string_view vpath, const std::string_view fpath);
    program(const program&) = delete;
    program(program&&) = delete;

    operator unsigned int() const noexcept { return this->index; };
};

} // namespace render
} // namespace client

#endif