Added imgui debug dialog for camera statistics

This commit is contained in:
Enrico Turri 2019-05-20 09:39:57 +02:00
parent c5e4ada75b
commit 783a527109
4 changed files with 36 additions and 1 deletions

View file

@ -64,6 +64,10 @@ public:
void apply_view_matrix() const;
void apply_projection(const BoundingBoxf3& box) const;
#if ENABLE_CAMERA_STATISTICS
void debug_render() const;
#endif // ENABLE_CAMERA_STATISTICS
private:
void apply_ortho_projection(double x_min, double x_max, double y_min, double y_max, double z_min, double z_max) const;
};