diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-04-28 01:34:09 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-04-28 02:31:15 +0200 |
| commit | 05b7c7ebb03187664c73dc91e08135a15237558d (patch) | |
| tree | 9e995b74ab65f86f74cfe2f743e49d54ef07050a /src/wx/gl_util.h | |
| parent | d13addc4a274b51e841fb93c39e1573535efe32d (diff) | |
Small cleanup to wrap uniform variables.
Diffstat (limited to 'src/wx/gl_util.h')
| -rw-r--r-- | src/wx/gl_util.h | 24 |
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); +}; + + } } |
