summaryrefslogtreecommitdiff
path: root/lib/glContainer.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-05-01 18:08:52 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2023-05-01 18:08:52 +0100
commit5ef2a29e0aeb15ab2c455f8e4c8d69262ca0f622 (patch)
tree5eb424ae9fbe3b862db6abd7e7e1029e07936cc1 /lib/glContainer.h
parentAdd missing test over iterator comparison (diff)
downloadilt-5ef2a29e0aeb15ab2c455f8e4c8d69262ca0f622.tar.bz2
ilt-5ef2a29e0aeb15ab2c455f8e4c8d69262ca0f622.tar.xz
ilt-5ef2a29e0aeb15ab2c455f8e4c8d69262ca0f622.zip
Add method to get GL buffer name of glContainer
Diffstat (limited to 'lib/glContainer.h')
-rw-r--r--lib/glContainer.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/glContainer.h b/lib/glContainer.h
index 4b85005..94ba118 100644
--- a/lib/glContainer.h
+++ b/lib/glContainer.h
@@ -206,6 +206,12 @@ public:
return const_reserve_iterator {data_ - 1};
}
+ [[nodiscard]] const auto &
+ bufferName() const
+ {
+ return buffer_;
+ }
+
[[nodiscard]] size_type
size() const
{