Instance of the GeometryModel. Stored on GPU (VBO). More...
#include <Geometry.hpp>
Public Member Functions | |
GeometryInstance (const GeometryModel &mdl, GLenum freq) | |
GeometryInstance constructor. More... | |
GeometryInstance (const GeometryInstance &instance) | |
GeometryInstance copy constructor. More... | |
const GeometryModel & | model (void) const |
Access to the model of this instance. More... | |
const HdlVBO & | vbo (void) const |
Access to the VBO of this instance. More... | |
void | draw (void) |
Draw this instance. | |
Instance of the GeometryModel. Stored on GPU (VBO).
GeometryInstance::GeometryInstance | ( | const GeometryModel & | mdl, |
GLenum | freq | ||
) |
GeometryInstance constructor.
mdl | The original model to use. |
freq | The GL frequency of read/write operations (among : GL_STATIC_DRAW_ARB, GL_STATIC_READ_ARB, GL_STATIC_COPY_ARB, GL_DYNAMIC_DRAW_ARB, GL_DYNAMIC_READ_ARB, GL_DYNAMIC_COPY_ARB, GL_STREAM_DRAW_ARB, GL_STREAM_READ_ARB, GL_STREAM_COPY_ARB). |
GeometryInstance::GeometryInstance | ( | const GeometryInstance & | instance | ) |
GeometryInstance copy constructor.
instance | The source model. |
const GeometryModel & GeometryInstance::model | ( | void | ) | const |
Access to the model of this instance.
const HdlVBO & GeometryInstance::vbo | ( | void | ) | const |
Access to the VBO of this instance.