added screen director tools

minor additions / fixes
This commit is contained in:
2021-05-29 18:22:08 +02:00
parent 9e9b644856
commit 2c1faa60c6
8 changed files with 197 additions and 34 deletions

View File

@ -48,6 +48,10 @@ namespace MM::OpenGL {
return _size;
}
size_t getSizeBytes(void) const {
return _size * sizeof(TInstance);
}
TInstance* map(size_t size, GLenum usage = GL_DYNAMIC_DRAW, bool shrink = false) {
if (size > _size || (shrink && (size < _size)))
resize(size, usage);