25#ifndef _3D_SPHERES_GIZMO_H_
26#define _3D_SPHERES_GIZMO_H_
42 void setViewport(
int ax,
int ay,
int aWidth,
int aHeight );
104 { 0.9f, 0.0f, 0.0f },
105 { 0.9f, 0.0f, 0.0f } },
109 { 0.4f, 0.0f, 0.0f },
110 { 0.4f, 0.0f, 0.0f } },
114 { 0.0f, 0.9f, 0.0f },
115 { 0.0f, 0.9f, 0.0f } },
119 { 0.0f, 0.4f, 0.0f },
120 { 0.0f, 0.4f, 0.0f } },
124 { 0.0f, 0.0f, 0.9f },
125 { 0.0f, 0.0f, 0.9f } },
129 { 0.0f, 0.0f, 0.4f },
130 { 0.0f, 0.0f, 0.4f } } } };
#define RANGE_SCALE_3D
This defines the range that all coord will have to be rendered.
GizmoSphereSelection
Enum to indicate which sphere (direction) is selected.
@ None
No sphere selected.
@ Count
Number of selectable spheres.
void handleMouseInput(int aMouseX, int aMouseY)
void render3dSpheresGizmo(glm::mat4 aCameraRotationMatrix)
std::array< GizmoSphere, 6 > m_spheres
List of all directional gizmo spheres.
GizmoSphereSelection getSelectedGizmoSphere() const
std::tuple< int, int, int, int > getViewport() const
void setViewport(int ax, int ay, int aWidth, int aHeight)
GizmoSphereSelection m_selectedGizmoSphere
SPHERES_GIZMO(int aGizmoPosX, int aGizmoPosY)
void resetSelectedGizmoSphere()
const float m_sphereRadius
void setGizmoPosition(int ax, int ay)
glm::vec3 m_originalColor
glm::vec3 m_labelPosition