i have used OpenGL function to draw a picture,such as a SolidSphere,but now i want to draw a new picture such as cube at the same place(just i draw the cube, at the same time can delete the sphere.)i don’t know how i should do!so ask for the answer.
hm could you describe it a bit more ?
you could just stop drawing the sphere and only draw the cube in your next frame…
And put appropriate glClear between the two.