diff options
| author | Nicolas James <Eele1Ephe7uZahRie@tutanota.com> | 2025-02-12 18:05:18 +1100 |
|---|---|---|
| committer | Nicolas James <Eele1Ephe7uZahRie@tutanota.com> | 2025-02-12 18:05:18 +1100 |
| commit | 1cc08c51eb4b0f95c30c0a98ad1fc5ad3459b2df (patch) | |
| tree | 222dfcd07a1e40716127a347bbfd7119ce3d0984 /src/client/render/program.hh | |
initial commit
Diffstat (limited to 'src/client/render/program.hh')
| -rw-r--r-- | src/client/render/program.hh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/client/render/program.hh b/src/client/render/program.hh new file mode 100644 index 0000000..10ae19c --- /dev/null +++ b/src/client/render/program.hh @@ -0,0 +1,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 |
