yeah my problem is i dont knw to translate glutSolidSphere & glutSolidCube line to QT.....so can someone please guide me through how to do it...thank you

Qt Code:
  1. void AntiAliasWidget::drawBasketBaloon()
  2. {
  3. glPushMatrix(); //Save the current transformation state
  4. glTranslatef(_height*1.7f-7.0f, 5.0f, -2.0f); //Move to the center of the baloon
  5. glColor3f(0.5f, 0.5f, 1.0f);
  6. glutSolidSphere(0.4f, 200, 200);
  7. glPopMatrix(); //Undo the move to the center of the baloon
  8. glPushMatrix(); //Save the current transformation state
  9. glTranslatef(_height*1.7f-7.0f, 4.0f, -2.0f); //Move to the center of the light
  10. glColor3f(1.0f, 0.7f, 0.0f);
  11. glutSolidCube(0.2f);
  12. glBegin(GL_LINES);
  13. glColor3f(0.0f, 0.0f, 0.0f); //Set color of the bar to black
  14. glVertex3f(0.0f, 0.7f, 0.0f);
  15. glVertex3f(0.1f, 0.0f, 0.1f);
  16. glVertex3f(0.0f, 0.7f, 0.0f);
  17. glVertex3f(0.1f, 0.0f, -0.1f);
  18. glVertex3f(0.0f, 0.7f, 0.0f);
  19. glVertex3f(-0.1f, 0.0f, 0.1f);
  20. glVertex3f(0.0f, 0.7f, 0.0f);
  21. glVertex3f(-0.1f, 0.0f, -0.1f);
  22. glEnd();
  23. glPopMatrix(); //Undo the move to the center of the baloon
  24. glFlush();
  25. }
To copy to clipboard, switch view to plain text mode