1#ifndef GLK_VOXELMAP_HPP
2#define GLK_VOXELMAP_HPP
28 std::cerr <<
"warning: VoxelMapOptions is deprecated. Use MeshRenderingOptions instead." << std::endl;
84 static std::shared_ptr<glk::GLSLShader> shader;
92 GLuint cube_ebo_faces;
93 GLuint cube_ebo_edges;
Definition drawable.hpp:12
GLSLShader is a wrapper for OpenGL shader programs.
Definition glsl_shader.hpp:49
virtual void draw(glk::GLSLShader &shader) const override
VoxelMap(const Eigen::Vector3i *voxel_coords, int num_voxels, double resolution, const MeshRenderingOptions &options=MeshRenderingOptions())
Constructor.
VoxelMap(const Eigen::Vector3i *voxel_coords, int num_voxels, double resolution, const VoxelMapOptions &options)
VoxelMap(const std::vector< Eigen::Vector3i > &voxel_coords, double resolution, const MeshRenderingOptions &options=MeshRenderingOptions())
Constructor.
Definition async_buffer_copy.hpp:6
Options for rendering meshes.
Definition mesh_rendering_options.hpp:12
Definition voxelmap.hpp:14
void set_voxel_color(const Eigen::Vector4f &color)
bool draw_edges
Definition voxelmap.hpp:47
bool override_voxel_color
Definition voxelmap.hpp:43
bool override_edge_color_mode
Definition voxelmap.hpp:48
int edge_color_mode
Definition voxelmap.hpp:50
bool override_edge_color
Definition voxelmap.hpp:49
void set_voxel_alpha(float alpha)
bool override_voxel_color_mode
Definition voxelmap.hpp:42
double edge_line_width
Definition voxelmap.hpp:53
void set_edge_alpha(float alpha)
Eigen::Vector4f edge_color
Definition voxelmap.hpp:51
int voxel_color_mode
Definition voxelmap.hpp:44
void set_edge_color(const Eigen::Vector4f &color)
VoxelMapOptions()
Definition voxelmap.hpp:16
Eigen::Vector4f voxel_color
Definition voxelmap.hpp:45
MeshRenderingOptions to_mesh_rendering_options() const
bool draw_voxels
Definition voxelmap.hpp:41