MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::RenderBufferRef< T > Class Template Reference

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
 

Detailed Description

template<typename T>
class MR::RenderBufferRef< T >

provides access to shared buffer with type casting


The documentation for this class was generated from the following file: