Blt or BltFast?

This is a discussion on Blt or BltFast? within the Windows Programming forums, part of the Platform Specific Boards category; // So I have an array like this: #define ANIM_STEPS 10 LPDIRECTDRAWSURFACE7 lpDDS[ANIM_STEPS]; // Let's say this array contains 10 ...

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    60

    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?

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    Put a delay in your loop. Sleep() or similar. Depends on what else you are doing at the time of course.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 90 Degree Rotation Blt
    By Unregistered in forum Windows Programming
    Replies: 1
    Last Post: 04-08-2002, 07:05 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21