MeshLib Documentation
Loading...
Searching...
No Matches
MR::GlBuffer Class Reference

#include <MRRenderGLHelpers.h>

Public Member Functions

 GlBuffer ()=default
 
 GlBuffer (const GlBuffer &)=delete
 
 GlBuffer (GlBuffer &&r)
 
 ~GlBuffer ()
 
GlBufferoperator= (const GlBuffer &)=delete
 
GlBufferoperator= (GlBuffer &&r)
 
auto getId () const
 
bool valid () const
 
size_t size () const
 
MRVIEWER_API void gen ()
 
MRVIEWER_API void del ()
 
MRVIEWER_API void bind (GLenum target)
 
MRVIEWER_API void loadData (GLenum target, const char *arr, size_t arrSize)
 
template<typename T >
void loadData (GLenum target, const T *arr, size_t arrSize)
 
template<typename C >
void loadData (GLenum target, const C &cont)
 
MRVIEWER_API void loadDataOpt (GLenum target, bool refresh, const char *arr, size_t arrSize)
 
template<typename T >
void loadDataOpt (GLenum target, bool refresh, const T *arr, size_t arrSize)
 
template<typename C >
void loadDataOpt (GLenum target, bool refresh, const C &cont)
 

Constructor & Destructor Documentation

◆ GlBuffer() [1/3]

MR::GlBuffer::GlBuffer ( )
default

◆ GlBuffer() [2/3]

MR::GlBuffer::GlBuffer ( const GlBuffer & )
delete

◆ GlBuffer() [3/3]

MR::GlBuffer::GlBuffer ( GlBuffer && r)
inline

◆ ~GlBuffer()

MR::GlBuffer::~GlBuffer ( )
inline

Member Function Documentation

◆ bind()

MRVIEWER_API void MR::GlBuffer::bind ( GLenum target)

◆ del()

MRVIEWER_API void MR::GlBuffer::del ( )

◆ gen()

MRVIEWER_API void MR::GlBuffer::gen ( )

◆ getId()

auto MR::GlBuffer::getId ( ) const
inline

◆ loadData() [1/3]

template<typename C >
void MR::GlBuffer::loadData ( GLenum target,
const C & cont )
inline

◆ loadData() [2/3]

MRVIEWER_API void MR::GlBuffer::loadData ( GLenum target,
const char * arr,
size_t arrSize )

◆ loadData() [3/3]

template<typename T >
void MR::GlBuffer::loadData ( GLenum target,
const T * arr,
size_t arrSize )
inline

◆ loadDataOpt() [1/3]

template<typename C >
void MR::GlBuffer::loadDataOpt ( GLenum target,
bool refresh,
const C & cont )
inline

◆ loadDataOpt() [2/3]

MRVIEWER_API void MR::GlBuffer::loadDataOpt ( GLenum target,
bool refresh,
const char * arr,
size_t arrSize )

◆ loadDataOpt() [3/3]

template<typename T >
void MR::GlBuffer::loadDataOpt ( GLenum target,
bool refresh,
const T * arr,
size_t arrSize )
inline

◆ operator=() [1/2]

GlBuffer & MR::GlBuffer::operator= ( const GlBuffer & )
delete

◆ operator=() [2/2]

GlBuffer & MR::GlBuffer::operator= ( GlBuffer && r)
inline

◆ size()

size_t MR::GlBuffer::size ( ) const
inline

◆ valid()

bool MR::GlBuffer::valid ( ) const
inline

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