Gui::OpenGLBuffer Class Reference
#include <GLBuffer.h>
Public Member Functions | |
| void | allocate (const void *data, int count) |
| bool | bind () |
| bool | create () |
| void | destroy () |
| uint32_t | getBoundContext () const |
| GLuint | getBufferId () const |
| bool | isCreated () const |
| OpenGLBuffer (GLenum type) | |
| void | release () |
| void | setCurrentContext (uint32_t ctx) |
| int | size () const |
| ~OpenGLBuffer () | |
Static Public Member Functions | |
| static bool | isVBOSupported (uint32_t ctx) |
| OpenGLBuffer::isVBOSupported returns if the OpenGL driver supports the VBO extension. When calling this function there must be a current OpenGL context. More... | |
Constructor & Destructor Documentation
◆ OpenGLBuffer()
| OpenGLBuffer::OpenGLBuffer | ( | GLenum | type | ) |
◆ ~OpenGLBuffer()
| OpenGLBuffer::~OpenGLBuffer | ( | ) |
References destroy().
Member Function Documentation
◆ allocate()
| void OpenGLBuffer::allocate | ( | const void * | data, |
| int | count | ||
| ) |
◆ bind()
| bool OpenGLBuffer::bind | ( | ) |
◆ create()
| bool OpenGLBuffer::create | ( | ) |
Referenced by draftguitools.gui_labels.Label::action().
◆ destroy()
| void OpenGLBuffer::destroy | ( | ) |
Referenced by ~OpenGLBuffer().
◆ getBoundContext()
| uint32_t OpenGLBuffer::getBoundContext | ( | ) | const |
◆ getBufferId()
| GLuint OpenGLBuffer::getBufferId | ( | ) | const |
◆ isCreated()
| bool OpenGLBuffer::isCreated | ( | ) | const |
◆ isVBOSupported()
|
static |
OpenGLBuffer::isVBOSupported returns if the OpenGL driver supports the VBO extension. When calling this function there must be a current OpenGL context.
- Returns
Referenced by MeshGui::MeshRenderer::Private::canRenderGLArray().
◆ release()
| void OpenGLBuffer::release | ( | ) |
◆ setCurrentContext()
| void OpenGLBuffer::setCurrentContext | ( | uint32_t | ctx | ) |
◆ size()
| int OpenGLBuffer::size | ( | ) | const |
Referenced by PathScripts.PostUtils.GCodeEditorDialog::done().
The documentation for this class was generated from the following files:
- src/Gui/GLBuffer.h
- src/Gui/GLBuffer.cpp
1.8.17