MRPT  2.0.0
List of all members | Public Member Functions | Public Attributes
mrpt::opengl::COpenGLBuffer::RAII_Impl Struct Reference

Detailed Description

Definition at line 84 of file COpenGLBuffer.h.

Public Member Functions

 RAII_Impl (COpenGLBuffer::Type t)
 
 ~RAII_Impl ()
 
void create ()
 
void destroy ()
 
void bind ()
 
void release ()
 
void allocate (const void *data, int byteCount)
 

Public Attributes

COpenGLBuffer::Type type
 
COpenGLBuffer::Usage usage = COpenGLBuffer::Usage::StaticDraw
 
bool created = false
 
unsigned int buffer_id = 0
 
std::thread::id created_from
 

Constructor & Destructor Documentation

◆ RAII_Impl()

COpenGLBuffer::RAII_Impl::RAII_Impl ( COpenGLBuffer::Type  t)

Definition at line 23 of file COpenGLBuffer.cpp.

◆ ~RAII_Impl()

COpenGLBuffer::RAII_Impl::~RAII_Impl ( )

Definition at line 24 of file COpenGLBuffer.cpp.

References mrpt::opengl::COpenGLBuffer::destroy().

Here is the call graph for this function:

Member Function Documentation

◆ allocate()

void COpenGLBuffer::RAII_Impl::allocate ( const void *  data,
int  byteCount 
)

Definition at line 74 of file COpenGLBuffer.cpp.

References ASSERT_, mrpt::opengl::internal::data, mrpt::opengl::COpenGLBuffer::type(), and mrpt::opengl::COpenGLBuffer::usage().

Here is the call graph for this function:

◆ bind()

void COpenGLBuffer::RAII_Impl::bind ( )

Definition at line 56 of file COpenGLBuffer.cpp.

References ASSERT_, and mrpt::opengl::COpenGLBuffer::type().

Here is the call graph for this function:

◆ create()

void COpenGLBuffer::RAII_Impl::create ( )

Definition at line 30 of file COpenGLBuffer.cpp.

References mrpt::opengl::COpenGLBuffer::destroy().

Here is the call graph for this function:

◆ destroy()

void COpenGLBuffer::RAII_Impl::destroy ( )

Definition at line 42 of file COpenGLBuffer.cpp.

References mrpt::opengl::COpenGLBuffer::release().

Here is the call graph for this function:

◆ release()

void COpenGLBuffer::RAII_Impl::release ( )

Definition at line 64 of file COpenGLBuffer.cpp.

References mrpt::opengl::COpenGLBuffer::type().

Here is the call graph for this function:

Member Data Documentation

◆ buffer_id

unsigned int mrpt::opengl::COpenGLBuffer::RAII_Impl::buffer_id = 0

Definition at line 99 of file COpenGLBuffer.h.

◆ created

bool mrpt::opengl::COpenGLBuffer::RAII_Impl::created = false

Definition at line 98 of file COpenGLBuffer.h.

◆ created_from

std::thread::id mrpt::opengl::COpenGLBuffer::RAII_Impl::created_from

Definition at line 100 of file COpenGLBuffer.h.

◆ type

COpenGLBuffer::Type mrpt::opengl::COpenGLBuffer::RAII_Impl::type

Definition at line 89 of file COpenGLBuffer.h.

◆ usage

COpenGLBuffer::Usage mrpt::opengl::COpenGLBuffer::RAII_Impl::usage = COpenGLBuffer::Usage::StaticDraw

Definition at line 90 of file COpenGLBuffer.h.




Page generated by Doxygen 1.8.14 for MRPT 2.0.0 Git: b38439d21 Tue Mar 31 19:58:06 2020 +0200 at miƩ abr 1 00:50:30 CEST 2020