feat: Implement Z-up axis orientation for ViewCube

Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
2026-02-15 10:01:35 -07:00
parent 1bda9bd16d
commit 7785f5be1a

View File

@@ -128,11 +128,11 @@ void ViewCube::drawAxes()
// Y-axis (green) // Y-axis (green)
glColor3f(0.0, 1.0, 0.0); glColor3f(0.0, 1.0, 0.0);
glVertex3f(0.0, 0.0, 0.0); glVertex3f(0.0, 0.0, 0.0);
glVertex3f(0.0, 1.5, 0.0); glVertex3f(0.0, 0.0, 1.5);
// Z-axis (blue) // Z-axis (blue)
glColor3f(0.0, 0.0, 1.0); glColor3f(0.0, 0.0, 1.0);
glVertex3f(0.0, 0.0, 0.0); glVertex3f(0.0, 0.0, 0.0);
glVertex3f(0.0, 0.0, 1.5); glVertex3f(0.0, 1.5, 0.0);
glEnd(); glEnd();
glLineWidth(1.0f); glLineWidth(1.0f);
} }