GL buffer.
Definition at line 28 of file buffer.h.
◆ Buffer()
GUI::RealSpace::Buffer::Buffer |
( |
Geometry const & |
geometry | ) |
|
Definition at line 27 of file buffer.cpp.
29 initializeOpenGLFunctions();
31 const auto& mesh = geometry.m_mesh;
34 QOpenGLVertexArrayObject::Binder dummy(&
m_vao);
40 glEnableVertexAttribArray(0);
41 glEnableVertexAttribArray(1);
43 glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 2 *
sizeof(Vector3D),
nullptr);
44 glVertexAttribPointer(1, 3, GL_FLOAT, GL_FALSE, 2 *
sizeof(Vector3D),
45 reinterpret_cast<void*
>(
sizeof(Vector3D)));
QOpenGLVertexArrayObject m_vao
References m_glBuffer, GUI::RealSpace::Geometry::m_mesh, m_vao, and m_vertexCount.
◆ draw()
void GUI::RealSpace::Buffer::draw |
( |
| ) |
|
◆ m_glBuffer
QOpenGLBuffer GUI::RealSpace::Buffer::m_glBuffer |
|
private |
◆ m_vao
QOpenGLVertexArrayObject GUI::RealSpace::Buffer::m_vao |
|
private |
◆ m_vertexCount
int GUI::RealSpace::Buffer::m_vertexCount |
|
private |
The documentation for this class was generated from the following files:
- /home/build/builds/o5h8MZZm/0/mlz/bornagain/GUI/ba3d/view/buffer.h
- /home/build/builds/o5h8MZZm/0/mlz/bornagain/GUI/ba3d/view/buffer.cpp