27#ifndef EASY3D_RENDERER_DRAWABLE_POINTS_H
28#define EASY3D_RENDERER_DRAWABLE_POINTS_H
30#include <easy3d/renderer/drawable.h>
46 Type
type()
const override;
57 void set_impostor_type(ImposterType t) { impostor_type_ = t; }
61 void set_point_size(
float s) { point_size_ = s; }
64 void draw(
const Camera* camera)
const override;
68 void _draw_plain_points(
const Camera* camera)
const;
69 void _draw_spheres_sprite(
const Camera* camera)
const;
70 void _draw_spheres_geometry(
const Camera* camera)
const;
71 void _draw_surfels(
const Camera* camera)
const;
74 void _draw_plain_points_with_texture(
const Camera* camera)
const;
75 void _draw_spheres_with_texture_sprite(
const Camera* camera)
const;
76 void _draw_spheres_with_texture_geometry(
const Camera* camera)
const;
77 void _draw_surfels_with_texture(
const Camera* camera)
const;
81 ImposterType impostor_type_;
The base class for drawable objects. A drawable represent a set of points, line segments,...
Definition: drawable.h:56
Model * model()
the model to which the drawable is attached to (can be NULL).
Definition: drawable.h:77
The base class of renderable 3D models.
Definition: model.h:49
The drawable for rendering a set of points, e.g., point clouds, vertices of a mesh.
Definition: drawable_points.h:42
Type type() const override
Returns the type of the drawable.
Definition: drawable_points.cpp:51
ImposterType impostor_type() const
Definition: drawable_points.h:56
void draw(const Camera *camera) const override
The draw method.
Definition: drawable_points.cpp:56
float point_size() const
Definition: drawable_points.h:60
Definition: collider.cpp:182