summaryrefslogtreecommitdiff
path: root/src/wx/gl_util.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-04-28 01:34:09 +0200
committerCarl Hetherington <cth@carlh.net>2025-04-28 02:31:15 +0200
commit05b7c7ebb03187664c73dc91e08135a15237558d (patch)
tree9e995b74ab65f86f74cfe2f743e49d54ef07050a /src/wx/gl_util.h
parentd13addc4a274b51e841fb93c39e1573535efe32d (diff)
Small cleanup to wrap uniform variables.
Diffstat (limited to 'src/wx/gl_util.h')
-rw-r--r--src/wx/gl_util.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/wx/gl_util.h b/src/wx/gl_util.h
index f5ea15c90..101a35721 100644
--- a/src/wx/gl_util.h
+++ b/src/wx/gl_util.h
@@ -146,6 +146,30 @@ private:
};
+class Uniform
+{
+public:
+ void setup(int program, char const* name);
+
+protected:
+ int _location = -1;
+};
+
+
+class UniformVec4f : public Uniform
+{
+public:
+ void set(float a, float b, float c, float d);
+};
+
+
+class Uniform1i : public Uniform
+{
+public:
+ void set(int v);
+};
+
+
}
}