18 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);
19 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);
20 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);
22 template <
template <
class>
class Alloc>
26 const std::vector<int>& indices,
27 bool wireframe =
false)
28 :
Mesh(vertices.data(),
sizeof(
float) * 3, normals.data(),
sizeof(
float) * 3, vertices.size(), indices.data(), indices.size(), wireframe) {}
30 template <
template <
class>
class Alloc>
35 const std::vector<int>& indices,
36 bool wireframe =
false)
69 std::shared_ptr<Texture> texture;
Definition drawable.hpp:12
Definition glsl_shader.hpp:20
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 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)
Definition mesh.hpp:23
void set_texture(const std::shared_ptr< Texture > &texture, GLenum texture_target=GL_TEXTURE1)
virtual void draw(glk::GLSLShader &shader) const override
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)
Definition mesh.hpp:31
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, const void *tex_coords, int tex_coord_stride, int num_vertices, const void *indices, int num_indices, bool wireframe=false)
Definition async_buffer_copy.hpp:6
std::enable_if_t< needs_aligned_allocator< T >::value, std::shared_ptr< T > > make_shared(Args &&... args)
Definition make_shared.hpp:20