27#ifndef EASY3D_RENDERER_DRAWABLE_POINTS_H
28#define EASY3D_RENDERER_DRAWABLE_POINTS_H
30#include <easy3d/renderer/drawable.h>
92 void draw(
const Camera* camera)
const override;
96 void _draw_plain_points(
const Camera* camera)
const;
97 void _draw_spheres_sprite(
const Camera* camera)
const;
98 void _draw_spheres_geometry(
const Camera* camera)
const;
99 void _draw_surfels(
const Camera* camera)
const;
102 void _draw_plain_points_with_texture(
const Camera* camera)
const;
103 void _draw_spheres_with_texture_sprite(
const Camera* camera)
const;
104 void _draw_spheres_with_texture_geometry(
const Camera* camera)
const;
105 void _draw_surfels_with_texture(
const Camera* camera)
const;
A perspective or orthographic camera.
Definition camera.h:113
Type
The type of the drawable.
Definition drawable.h:63
@ DT_POINTS
Points drawable (GL_POINTS).
Definition drawable.h:64
const std::string & name() const
Returns the name of the drawable.
Definition drawable.h:92
Model * model()
Returns the model to which the drawable is attached.
Definition drawable.h:103
Drawable(const std::string &name="unknown", Model *model=nullptr)
Constructor that initializes the drawable with a name and an optional model.
Definition drawable.cpp:46
The base class of renderable 3D models.
Definition model.h:50
ImposterType
The type of the point imposter.
Definition drawable_points.h:60
@ PLAIN
Plain mode.
Definition drawable_points.h:61
@ SURFEL
The points will be drawn as surfels/discs.
Definition drawable_points.h:63
@ SPHERE
The points will be drawn as spheres.
Definition drawable_points.h:62
ImposterType impostor_type() const
Returns the type of the point imposter.
Definition drawable_points.h:70
void draw(const Camera *camera) const override
Draws the drawable.
Definition drawable_points.cpp:51
Type type() const override
Returns the type of the drawable.
Definition drawable_points.h:55
void set_impostor_type(ImposterType t)
Sets the type of the point imposter.
Definition drawable_points.h:75
void set_point_size(float s)
Sets the size of the points.
Definition drawable_points.h:86
float point_size() const
Returns the size of the points.
Definition drawable_points.h:81
PointsDrawable(const std::string &name="", Model *model=nullptr)
Constructor that initializes the drawable with a name and an optional model.
Definition drawable_points.cpp:41
Definition collider.cpp:182