chore: Remove initial test cube drawing

Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
2026-02-09 16:18:46 -07:00
parent 9282f334c9
commit fbfb496930
2 changed files with 1 additions and 52 deletions

View File

@@ -42,10 +42,8 @@ void ViewportWidget::paintGL()
glMatrixMode(GL_MODELVIEW); glMatrixMode(GL_MODELVIEW);
glLoadMatrixf(model.constData()); glLoadMatrixf(model.constData());
drawCube();
// View cube rendering // View cube rendering
QMatrix4x4 viewCubeModel; QMatrix4xá4 viewCubeModel;
viewCubeModel.rotate(xRot / 16.0f, 1, 0, 0); viewCubeModel.rotate(xRot / 16.0f, 1, 0, 0);
viewCubeModel.rotate(yRot / 16.0f, 0, 1, 0); viewCubeModel.rotate(yRot / 16.0f, 0, 1, 0);
m_viewCube->paintGL(viewCubeModel, width(), height()); m_viewCube->paintGL(viewCubeModel, width(), height());
@@ -92,50 +90,3 @@ void ViewportWidget::wheelEvent(QWheelEvent *event)
} }
update(); update();
} }
void ViewportWidget::drawCube()
{
glBegin(GL_QUADS);
// Front face
glColor3f(1.0, 0.0, 0.0);
glVertex3f(-0.5, -0.5, 0.5);
glVertex3f(0.5, -0.5, 0.5);
glVertex3f(0.5, 0.5, 0.5);
glVertex3f(-0.5, 0.5, 0.5);
// Back face
glColor3f(0.0, 1.0, 0.0);
glVertex3f(-0.5, -0.5, -0.5);
glVertex3f(-0.5, 0.5, -0.5);
glVertex3f(0.5, 0.5, -0.5);
glVertex3f(0.5, -0.5, -0.5);
// Top face
glColor3f(0.0, 0.0, 1.0);
glVertex3f(-0.5, 0.5, -0.5);
glVertex3f(-0.5, 0.5, 0.5);
glVertex3f(0.5, 0.5, 0.5);
glVertex3f(0.5, 0.5, -0.5);
// Bottom face
glColor3f(1.0, 1.0, 0.0);
glVertex3f(-0.5, -0.5, -0.5);
glVertex3f(0.5, -0.5, -0.5);
glVertex3f(0.5, -0.5, 0.5);
glVertex3f(-0.5, -0.5, 0.5);
// Right face
glColor3f(1.0, 0.0, 1.0);
glVertex3f(0.5, -0.5, -0.5);
glVertex3f(0.5, 0.5, -0.5);
glVertex3f(0.5, 0.5, 0.5);
glVertex3f(0.5, -0.5, 0.5);
// Left face
glColor3f(0.0, 1.0, 1.0);
glVertex3f(-0.5, -0.5, -0.5);
glVertex3f(-0.5, -0.5, 0.5);
glVertex3f(-0.5, 0.5, 0.5);
glVertex3f(-0.5, 0.5, -0.5);
glEnd();
}

View File

@@ -26,8 +26,6 @@ protected:
void wheelEvent(QWheelEvent *event) override; void wheelEvent(QWheelEvent *event) override;
private: private:
void drawCube();
QMatrix4x4 projection; QMatrix4x4 projection;
ViewCube* m_viewCube; ViewCube* m_viewCube;