summaryrefslogtreecommitdiffstats
path: root/game/client/program.hh
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-09-11 15:48:53 +0500
committeruntodesu <kirill@untode.su>2025-09-11 15:48:53 +0500
commitd0fbd68055e3f4a796330cc8acc6c0954b5327ff (patch)
treee581014ea02711efa5e71f00f9862e5bca58f2ed /game/client/program.hh
parentcbd823aa2154a956e7da4319eecbf7afc10441ae (diff)
downloadvoxelius-d0fbd68055e3f4a796330cc8acc6c0954b5327ff.tar.bz2
voxelius-d0fbd68055e3f4a796330cc8acc6c0954b5327ff.zip
Run clang-format across the project
Diffstat (limited to 'game/client/program.hh')
-rw-r--r--game/client/program.hh68
1 files changed, 34 insertions, 34 deletions
diff --git a/game/client/program.hh b/game/client/program.hh
index af78513..bf35417 100644
--- a/game/client/program.hh
+++ b/game/client/program.hh
@@ -1,34 +1,34 @@
-#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;
-};
+#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;
+};