   breakout ball and animation
  I want to animate a breakout ball using directx.Here is the code I am working on.//initialize ballint ball_left=390;intball_right=410;intball_top=290;intball_bottom=310;//draw balld3ddev->ColorFill(surface, NULL, D3DCOLOR_XRGB(255,255,255));RECT rectx;rectx.left = ball_left;rectx.right = ball_left+20;rectx.top = ball_top;rectx.bottom = ball_top+20;d3ddev->StretchRect(surface, NULL, backbuffer, &rectx, D3DTEXF_NONE);//draw black balld3ddev->ColorFill(surface, NULL, D3DCOLOR_XRGB(0,0,0));RECT recty;recty.left = ball_left+10;recty.right = ball_left+30;recty.top = ball_top+10;recty.bottom = ball_top+30;d3ddev->StretchRect(surface, NULL, backbuffer, &recty, D3DTEXF_NONE);
  Do you have a question?   