27#ifndef EASY3D_RENDERER_DRAWABLE_LINES_H
28#define EASY3D_RENDERER_DRAWABLE_LINES_H
30#include <easy3d/renderer/drawable.h>
44 Type
type()
const override;
52 ImposterType impostor_type()
const {
return impostor_type_; }
53 void set_impostor_type(ImposterType t) { impostor_type_ = t; }
55 float line_width()
const {
return line_width_; }
56 void set_line_width(
float w) { line_width_ = w; }
59 void draw(
const Camera* camera)
const override;
63 void _draw_plain_lines(
const Camera* camera)
const;
64 void _draw_cylinders(
const Camera* camera)
const;
65 void _draw_cones(
const Camera* camera)
const;
68 void _draw_plain_lines_with_texture(
const Camera* camera)
const;
69 void _draw_cylinders_with_texture(
const Camera* camera)
const;
70 void _draw_cones_with_texture(
const Camera* camera)
const;
74 ImposterType impostor_type_;
A perspective or orthographic camera.
Definition: camera.h:116
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 drawable for rendering a set of line segments, e.g., edges of a mesh, vector fields.
Definition: drawable_lines.h:40
Type type() const override
Returns the type of the drawable.
Definition: drawable_lines.cpp:48
void draw(const Camera *camera) const override
The draw method.
Definition: drawable_lines.cpp:53
The base class of renderable 3D models.
Definition: model.h:49
Definition: collider.cpp:182