-
Blt or BltFast?
// So I have an array like this:
#define ANIM_STEPS 10
LPDIRECTDRAWSURFACE7 lpDDS[ANIM_STEPS];
// Let's say this array contains 10 variations of the same sprite
// I'd like to copy these sprites to a primary surface like:
for(x=0;x<ANIM_STEPS){
lpDDSPrim->Blt(?);}
// The whole loop should show an animation of the sprite
// Should I use BltFast or Blt?
// Even Blt seems to be so fast, that all I see is the tenth step
// of the animation, when starting the program
// How can I avoid the problem above?
-
Put a delay in your loop. Sleep() or similar. Depends on what else you are doing at the time of course.