diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-04-20 20:11:05 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-04-20 20:11:05 +0100 |
commit | e9dd8fafcb4ea073fce9910f7cb139afc52e7c9a (patch) | |
tree | 5dedddbb1acb21b72641b045eebd70d68a7b70a2 | |
parent | Support setting vertex attrib divisor (diff) | |
download | ilt-e9dd8fafcb4ea073fce9910f7cb139afc52e7c9a.tar.bz2 ilt-e9dd8fafcb4ea073fce9910f7cb139afc52e7c9a.tar.xz ilt-e9dd8fafcb4ea073fce9910f7cb139afc52e7c9a.zip |
Expose bufferName and count from InstanceVertices
-rw-r--r-- | gfx/gl/instanceVertices.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gfx/gl/instanceVertices.h b/gfx/gl/instanceVertices.h index cf3b75b..dc28a4d 100644 --- a/gfx/gl/instanceVertices.h +++ b/gfx/gl/instanceVertices.h @@ -115,6 +115,18 @@ public: unused.push_back(p.index); } + const auto & + bufferName() const + { + return buffer; + } + + auto + count() const + { + return next; + } + protected: friend InstanceProxy; |