summaryrefslogtreecommitdiff
path: root/gfx/gl
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-04-20 20:11:05 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2023-04-20 20:11:05 +0100
commite9dd8fafcb4ea073fce9910f7cb139afc52e7c9a (patch)
tree5dedddbb1acb21b72641b045eebd70d68a7b70a2 /gfx/gl
parentSupport setting vertex attrib divisor (diff)
downloadilt-e9dd8fafcb4ea073fce9910f7cb139afc52e7c9a.tar.bz2
ilt-e9dd8fafcb4ea073fce9910f7cb139afc52e7c9a.tar.xz
ilt-e9dd8fafcb4ea073fce9910f7cb139afc52e7c9a.zip
Expose bufferName and count from InstanceVertices
Diffstat (limited to 'gfx/gl')
-rw-r--r--gfx/gl/instanceVertices.h12
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;