Public Member Functions | Protected Types | Protected Attributes

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

#include <gl_draw_mesh.h>

List of all members.

Public Member Functions

 MeshDrawArray ()
 MeshDrawArray (mesh_type const &mesh)
 ~MeshDrawArray ()
void operator() () const

Protected Types

typedef mesh_type::vertex_traits vertex_data
typedef
mesh_type::math_types::vector3_type 
vector3_type
typedef
mesh_type::math_types::real_type 
real_type

Protected Attributes

vertex_datam_data
 vertex data: (coord, normal, u,v, color3)
unsigned int * m_indices
 vertex indices of triangles
std::size_t m_count
 Number of triangles.

Detailed Description

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

This Drawing Utility is based on Vertex Arrays.

Since a mesh may not be an array, this utility requires some setting up, but once it have been initialized a mesh can be drawn quickly and efficietly.

NOTE: The utility only supports triangular meshes.


Member Typedef Documentation

template<typename mesh_type>
typedef mesh_type::math_types::real_type OpenTissue::gl::MeshDrawArray< mesh_type >::real_type [protected]
template<typename mesh_type>
typedef mesh_type::math_types::vector3_type OpenTissue::gl::MeshDrawArray< mesh_type >::vector3_type [protected]
template<typename mesh_type>
typedef mesh_type::vertex_traits OpenTissue::gl::MeshDrawArray< mesh_type >::vertex_data [protected]

Constructor & Destructor Documentation

template<typename mesh_type>
OpenTissue::gl::MeshDrawArray< mesh_type >::MeshDrawArray (  )  [inline]
template<typename mesh_type>
OpenTissue::gl::MeshDrawArray< mesh_type >::MeshDrawArray ( mesh_type const &  mesh  )  [inline]
template<typename mesh_type>
OpenTissue::gl::MeshDrawArray< mesh_type >::~MeshDrawArray (  )  [inline]

Member Function Documentation

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

Member Data Documentation

template<typename mesh_type>
std::size_t OpenTissue::gl::MeshDrawArray< mesh_type >::m_count [protected]

Number of triangles.

template<typename mesh_type>
vertex_data* OpenTissue::gl::MeshDrawArray< mesh_type >::m_data [protected]

vertex data: (coord, normal, u,v, color3)

template<typename mesh_type>
unsigned int* OpenTissue::gl::MeshDrawArray< mesh_type >::m_indices [protected]

vertex indices of triangles


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