Public Member Functions | Protected Attributes

OpenTissue::gl::MeshDrawDisplayLists< mesh_type > Class Template Reference

#include <gl_draw_mesh.h>

List of all members.

Public Member Functions

 MeshDrawDisplayLists ()
 MeshDrawDisplayLists (mesh_type const &mesh, unsigned int mode=GL_POLYGON, bool use_colors=true, bool use_normals=true, bool use_texcoords=true)
 ~MeshDrawDisplayLists ()
void operator() ()

Protected Attributes

GLuint m_lists
 The identifier of the first display list.
GLuint m_range
 The number of display lists used.

Detailed Description

template<typename mesh_type>
class OpenTissue::gl::MeshDrawDisplayLists< mesh_type >

Display List based Rendring. This is a little slower than using vertex array, but it allows for arbitary polygons.

There is a certain maximum size on a display list. This class therefore chops up a polygon mesh into several display lists. The size of these is currently hardwired to 50.000 polygons.


Constructor & Destructor Documentation

template<typename mesh_type>
OpenTissue::gl::MeshDrawDisplayLists< mesh_type >::MeshDrawDisplayLists (  )  [inline]
template<typename mesh_type>
OpenTissue::gl::MeshDrawDisplayLists< mesh_type >::MeshDrawDisplayLists ( mesh_type const &  mesh,
unsigned int  mode = GL_POLYGON,
bool  use_colors = true,
bool  use_normals = true,
bool  use_texcoords = true 
) [inline]
template<typename mesh_type>
OpenTissue::gl::MeshDrawDisplayLists< mesh_type >::~MeshDrawDisplayLists (  )  [inline]

Member Function Documentation

template<typename mesh_type>
void OpenTissue::gl::MeshDrawDisplayLists< mesh_type >::operator() (  )  [inline]

Member Data Documentation

template<typename mesh_type>
GLuint OpenTissue::gl::MeshDrawDisplayLists< mesh_type >::m_lists [protected]

The identifier of the first display list.

template<typename mesh_type>
GLuint OpenTissue::gl::MeshDrawDisplayLists< mesh_type >::m_range [protected]

The number of display lists used.


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