GLIP-Lib
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
Glip::CorePipeline::GeometryInstance Class Reference

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 GeometryModelmodel (void) const
 Access to the model of this instance. More...
 
const HdlVBOvbo (void) const
 Access to the VBO of this instance. More...
 
void draw (void)
 Draw this instance.
 

Detailed Description

Instance of the GeometryModel. Stored on GPU (VBO).

Constructor & Destructor Documentation

GeometryInstance::GeometryInstance ( const GeometryModel mdl,
GLenum  freq 
)

GeometryInstance constructor.

Parameters
mdlThe original model to use.
freqThe 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.

Parameters
instanceThe source model.

Member Function Documentation

const GeometryModel & GeometryInstance::model ( void  ) const

Access to the model of this instance.

Returns
A read-only access to the GeometryModel object.
const HdlVBO & GeometryInstance::vbo ( void  ) const

Access to the VBO of this instance.

Returns
A read-only access to the HdlVBO object.

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