From e9dd8fafcb4ea073fce9910f7cb139afc52e7c9a Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 20 Apr 2023 20:11:05 +0100 Subject: Expose bufferName and count from InstanceVertices --- gfx/gl/instanceVertices.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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; -- cgit v1.2.3