Small refactoring into GLGizmoBase::Grabber

This commit is contained in:
Enrico Turri 2018-10-12 16:18:37 +02:00
parent 76052d33bf
commit 35c7c418e9
2 changed files with 23 additions and 18 deletions

View file

@ -34,11 +34,11 @@ protected:
Grabber();
void render(bool hover, const BoundingBoxf3& box) const;
void render_for_picking(const BoundingBoxf3& box) const { render(box, color, false); }
void render(bool hover, float size) const;
void render_for_picking(float size) const { render(size, color, false); }
private:
void render(const BoundingBoxf3& box, const float* render_color, bool use_lighting) const;
void render(float size, const float* render_color, bool use_lighting) const;
void render_face(float half_size) const;
};