Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::MeshDrawerGL::DrawObject Class Reference

This class provides functionality for efficient, subsequent drawing of a mesh. The buffers of the mesh will be bound once this class is instantiated. More...

#include <meshdrawergl.h>

Public Member Functions

 DrawObject (const Mesh &mesh)
 DrawObject (const MeshGL *mesh, Mesh::MeshInfo arrayMeshInfo)
 DrawObject (const DrawObject &)=delete
 DrawObject (DrawObject &&)=default
DrawObjectoperator= (const DrawObject &)=delete
DrawObjectoperator= (DrawObject &&)=default
void draw ()
void draw (DrawMode drawMode)
void draw (std::size_t index)
void draw (DrawMode drawMode, std::size_t index)
void drawInstanced (size_t instances)
void drawInstanced (DrawMode drawMode, size_t instances)
void drawInstanced (std::size_t index, size_t instances)
void drawInstanced (DrawMode drawMode, std::size_t index, size_t instances)
void drawOnly (DrawMode drawMode)
void drawOnlyInstanced (DrawMode drawMode, size_t instances)
void drawOnly (std::function< bool(const Mesh::MeshInfo &)> filter)
void drawOnlyInstanced (std::function< bool(const Mesh::MeshInfo &)> filter, size_t instances)
std::size_t size () const
 returns the number of index buffers associated with the mesh representation

Detailed Description

This class provides functionality for efficient, subsequent drawing of a mesh. The buffers of the mesh will be bound once this class is instantiated.


The documentation for this class was generated from the following file:
  • meshdrawergl.h