27#ifndef EASY3D_GUI_PICKER_MODEL_H
28#define EASY3D_GUI_PICKER_MODEL_H
30#include <easy3d/gui/picker.h>
31#include <easy3d/renderer/state.h>
32#include <easy3d/renderer/camera.h>
35#include <unordered_map>
64 Model *
pick(
const std::vector<Model *> &models,
int x,
int y);
69 void draw(
const std::vector<Model *> &models);
75 std::unordered_map<Drawable *, State> states_;
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
The base class of renderable 3D models.
Definition: model.h:49
Implementation of picking mechanism for set of models.
Definition: picker_model.h:48
Model * pick(const std::vector< Model * > &models, int x, int y)
Pick a model from a set of models given the cursor position in the screen coordinate system.
Definition: picker_model.cpp:46
Base class for picking mechanism.
Definition: picker.h:43
Definition: collider.cpp:182