title: Graphics.h refresh screen
body: <p>I made a small program that displays a 3d cube that you can scale on any axis using the arrow keys. Only problem is that im using <code>cleardevice();</code> for refreshing the cube ( so that there is no "smearing" when scaling the cube ). that works fine its just that every time the cube refreshes using this method the screen goes black for a split second resulting in annoying flickering. Is there a better way of refreshing the screen every time the user changes the cube?
  I did actually research this but i wasnt able to find anything suitable (Maybe im just bad at researching but i couldn't find anything for the live of me)</p>