summaryrefslogtreecommitdiffstats
path: root/game/client/program.hh
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-12-11 15:14:26 +0500
committeruntodesu <kirill@untode.su>2025-12-11 15:14:26 +0500
commitf40d09cb8f712e87691af4912f3630d92d692779 (patch)
tree7ac3a4168ff722689372fd489c6f94d0a2546e8f /game/client/program.hh
parent8bcbd2729388edc63c82d77d314b583af1447c49 (diff)
downloadvoxelius-f40d09cb8f712e87691af4912f3630d92d692779.tar.bz2
voxelius-f40d09cb8f712e87691af4912f3630d92d692779.zip
Shuffle stuff around
- Use the new and improved hierarchy I figured out when making Prospero chat - Re-add NSIS scripts, again from Prospero - Update most build and utility scripts with their most recent versions
Diffstat (limited to 'game/client/program.hh')
-rw-r--r--game/client/program.hh34
1 files changed, 0 insertions, 34 deletions
diff --git a/game/client/program.hh b/game/client/program.hh
deleted file mode 100644
index bf35417..0000000
--- a/game/client/program.hh
+++ /dev/null
@@ -1,34 +0,0 @@
-#pragma once
-
-struct GL_VariedMacro final {
- std::string name;
- unsigned long line;
- unsigned int value;
-};
-
-struct GL_Uniform final {
- std::string name;
- GLint location;
-};
-
-class GL_Program final {
-public:
- bool setup(std::string_view vpath, std::string_view fpath);
- void destroy(void);
- bool update(void);
-
- std::size_t add_uniform(std::string_view name);
- void set_variant_vert(unsigned int variant, unsigned int value);
- void set_variant_frag(unsigned int variant, unsigned int value);
-
-public:
- std::string vert_path;
- std::string frag_path;
- std::vector<std::string> vert_source;
- std::vector<std::string> frag_source;
- std::vector<GL_VariedMacro> vert_variants;
- std::vector<GL_VariedMacro> frag_variants;
- std::vector<GL_Uniform> uniforms;
- bool needs_update;
- GLuint handle;
-};