diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-08-26 13:55:32 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-08-26 13:59:57 +0100 |
commit | 10e0fee323e6277ba73ee1fc148417882bc381c3 (patch) | |
tree | 86d83581b6b39d3a5f2f11a420d35440106d41e5 /gfx/gl/program.h | |
parent | Add a foliage vertex array for just the location data (diff) | |
download | ilt-10e0fee323e6277ba73ee1fc148417882bc381c3.tar.bz2 ilt-10e0fee323e6277ba73ee1fc148417882bc381c3.tar.xz ilt-10e0fee323e6277ba73ee1fc148417882bc381c3.zip |
Add helper to test if a uniform was found
Diffstat (limited to 'gfx/gl/program.h')
-rw-r--r-- | gfx/gl/program.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gfx/gl/program.h b/gfx/gl/program.h index c89a128..20be1aa 100644 --- a/gfx/gl/program.h +++ b/gfx/gl/program.h @@ -33,6 +33,12 @@ public: return location; } + explicit + operator bool() const + { + return location >= 0; + } + protected: GLint location; }; |