provides access to shared buffer with type casting More...
#include <MRRenderHelpers.h>
Public Member Functions | |
| RenderBufferRef ()=default | |
| RenderBufferRef (T *data, std::size_t glSize, bool dirty) | |
| T & | operator[] (std::size_t i) const noexcept |
| returns reference to i-th element | |
| T * | data () const noexcept |
| returns pointer to buffer data | |
| std::size_t | size () const noexcept |
| returns actual buffer size | |
| std::size_t | glSize () const noexcept |
| returns number of elements that are about to be loaded or already loaded to GL memory | |
| bool | dirty () const noexcept |
| returns true if associated data were updated | |
provides access to shared buffer with type casting