summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-12-31 12:40:11 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-12-31 12:40:11 +0000
commitd1bdd08f95ebb6926f85a7735cbffcac15031922 (patch)
treed62dd5104ce3710df154fa3e2858580b342dbee8
parentAllow glBuffers and glVertexArrays to be moved (diff)
downloadilt-d1bdd08f95ebb6926f85a7735cbffcac15031922.tar.bz2
ilt-d1bdd08f95ebb6926f85a7735cbffcac15031922.tar.xz
ilt-d1bdd08f95ebb6926f85a7735cbffcac15031922.zip
Add operator-> to glRef for pointer types
-rw-r--r--lib/glRef.hpp6
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;