diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-12-31 12:40:11 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-12-31 12:40:11 +0000 |
commit | d1bdd08f95ebb6926f85a7735cbffcac15031922 (patch) | |
tree | d62dd5104ce3710df154fa3e2858580b342dbee8 /lib | |
parent | Allow glBuffers and glVertexArrays to be moved (diff) | |
download | ilt-d1bdd08f95ebb6926f85a7735cbffcac15031922.tar.bz2 ilt-d1bdd08f95ebb6926f85a7735cbffcac15031922.tar.xz ilt-d1bdd08f95ebb6926f85a7735cbffcac15031922.zip |
Add operator-> to glRef for pointer types
Diffstat (limited to 'lib')
-rw-r--r-- | lib/glRef.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/glRef.hpp b/lib/glRef.hpp index b33980d..3377390 100644 --- a/lib/glRef.hpp +++ b/lib/glRef.hpp @@ -44,6 +44,12 @@ public: return id; } + auto + operator->() const + { + return id; + } + operator IdType() const { return id; |