Added background texture to gizmos overlay

This commit is contained in:
Enrico Turri 2018-12-17 13:20:57 +01:00
parent 57e80f896c
commit 40f74fe6eb
2 changed files with 133 additions and 17 deletions

View file

@ -628,6 +628,9 @@ private:
bool m_enabled;
typedef std::map<EType, GLGizmoBase*> GizmosMap;
GizmosMap m_gizmos;
#if ENABLE_TOOLBAR_BACKGROUND_TEXTURE
BackgroundTexture m_background_texture;
#endif // ENABLE_TOOLBAR_BACKGROUND_TEXTURE
EType m_current;
public:
@ -696,6 +699,9 @@ private:
void _render_current_gizmo(const Selection& selection) const;
float _get_total_overlay_height() const;
#if ENABLE_TOOLBAR_BACKGROUND_TEXTURE
float _get_total_overlay_width() const;
#endif // ENABLE_TOOLBAR_BACKGROUND_TEXTURE
GLGizmoBase* _get_current() const;
};