MeshLib Documentation
Loading...
Searching...
No Matches
MR::RenderBufferRef< T > Class Template Reference

#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
 
T * data () const noexcept
 
std::size_t size () const noexcept
 
std::size_t glSize () const noexcept
 
bool dirty () const noexcept
 

Constructor & Destructor Documentation

◆ RenderBufferRef() [1/2]

template<typename T >
MR::RenderBufferRef< T >::RenderBufferRef ( )
default

◆ RenderBufferRef() [2/2]

template<typename T >
MR::RenderBufferRef< T >::RenderBufferRef ( T * data,
std::size_t glSize,
bool dirty )
inline

Member Function Documentation

◆ data()

template<typename T >
T * MR::RenderBufferRef< T >::data ( ) const
inlinenoexcept

◆ dirty()

template<typename T >
bool MR::RenderBufferRef< T >::dirty ( ) const
inlinenodiscardnoexcept

◆ glSize()

template<typename T >
std::size_t MR::RenderBufferRef< T >::glSize ( ) const
inlinenodiscardnoexcept

◆ operator[]()

template<typename T >
T & MR::RenderBufferRef< T >::operator[] ( std::size_t i) const
inlinenoexcept

◆ size()

template<typename T >
std::size_t MR::RenderBufferRef< T >::size ( ) const
inlinenodiscardnoexcept

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