gtsam_points
Loading...
Searching...
No Matches
Public Member Functions | List of all members
glk::Mesh Class Reference

#include <mesh.hpp>

Inheritance diagram for glk::Mesh:
Inheritance graph
[legend]
Collaboration diagram for glk::Mesh:
Collaboration graph
[legend]

Public Member Functions

 Mesh (const void *vertices, int vertex_stride, const void *normals, int normal_stride, int num_vertices, const void *indices, int num_indices, bool wireframe=false)
 
 Mesh (const void *vertices, int vertex_stride, const void *normals, int normal_stride, const void *colors, int color_stride, int num_vertices, const void *indices, int num_indices, bool wireframe=false)
 
 Mesh (const void *vertices, int vertex_stride, const void *normals, int normal_stride, const void *colors, int color_stride, const void *tex_coords, int tex_coord_stride, int num_vertices, const void *indices, int num_indices, bool wireframe=false)
 
template<template< class > class Alloc>
 Mesh (const std::vector< Eigen::Vector3f, Alloc< Eigen::Vector3f > > &vertices, const std::vector< Eigen::Vector3f, Alloc< Eigen::Vector3f > > &normals, const std::vector< int > &indices, bool wireframe=false)
 
template<template< class > class Alloc>
 Mesh (const std::vector< Eigen::Vector3f, Alloc< Eigen::Vector3f > > &vertices, const std::vector< Eigen::Vector3f, Alloc< Eigen::Vector3f > > &normals, const std::vector< Eigen::Vector4f, Alloc< Eigen::Vector4f > > &colors, const std::vector< int > &indices, bool wireframe=false)
 
virtual ~Mesh ()
 
virtual void draw (glk::GLSLShader &shader) const override
 
void set_texture (const std::shared_ptr< Texture > &texture, GLenum texture_target=GL_TEXTURE1)
 
- Public Member Functions inherited from glk::Drawable
virtual ~Drawable ()
 

Additional Inherited Members

- Public Types inherited from glk::Drawable
using Ptr = std::shared_ptr< Drawable >
 
using ConstPtr = std::shared_ptr< const Drawable >
 

Constructor & Destructor Documentation

◆ Mesh() [1/5]

glk::Mesh::Mesh ( const void vertices,
int  vertex_stride,
const void normals,
int  normal_stride,
int  num_vertices,
const void indices,
int  num_indices,
bool  wireframe = false 
)

◆ Mesh() [2/5]

glk::Mesh::Mesh ( const void vertices,
int  vertex_stride,
const void normals,
int  normal_stride,
const void colors,
int  color_stride,
int  num_vertices,
const void indices,
int  num_indices,
bool  wireframe = false 
)

◆ Mesh() [3/5]

glk::Mesh::Mesh ( const void vertices,
int  vertex_stride,
const void normals,
int  normal_stride,
const void colors,
int  color_stride,
const void tex_coords,
int  tex_coord_stride,
int  num_vertices,
const void indices,
int  num_indices,
bool  wireframe = false 
)

◆ Mesh() [4/5]

template<template< class > class Alloc>
glk::Mesh::Mesh ( const std::vector< Eigen::Vector3f, Alloc< Eigen::Vector3f > > &  vertices,
const std::vector< Eigen::Vector3f, Alloc< Eigen::Vector3f > > &  normals,
const std::vector< int > &  indices,
bool  wireframe = false 
)
inline

◆ Mesh() [5/5]

template<template< class > class Alloc>
glk::Mesh::Mesh ( const std::vector< Eigen::Vector3f, Alloc< Eigen::Vector3f > > &  vertices,
const std::vector< Eigen::Vector3f, Alloc< Eigen::Vector3f > > &  normals,
const std::vector< Eigen::Vector4f, Alloc< Eigen::Vector4f > > &  colors,
const std::vector< int > &  indices,
bool  wireframe = false 
)
inline

◆ ~Mesh()

virtual glk::Mesh::~Mesh ( )
virtual

Member Function Documentation

◆ draw()

virtual void glk::Mesh::draw ( glk::GLSLShader shader) const
overridevirtual

Reimplemented from glk::Drawable.

◆ set_texture()

void glk::Mesh::set_texture ( const std::shared_ptr< Texture > &  texture,
GLenum  texture_target = GL_TEXTURE1 
)

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