Flipping with direct x, very simple Q

This is a discussion on Flipping with direct x, very simple Q within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Ok when you're flipping with direct x, do you first blits to the secondary surface then you call flip with ...

  1. #1
    left crog... back when? incognito's Avatar
    Join Date
    Oct 2001
    Posts
    1,427

    Flipping with direct x, very simple Q

    Ok when you're flipping with direct x, do you first blits to the secondary surface then you call flip with a point to the primary surface........

    like

    blits(to secondary surface)

    pointertoprimary->flip(arguments)?????
    There are some real morons in this world please do not become one of them, do not become a victim of moronitis. PROGRAMMING IS THE FUTURE...THE FUTURE IS NOW!!!!!!!!!

    "...The only real game I thank in the world is baseball..." --Babe Ruth

    "Life is beautiful"-Don Corleone right before he died.

    "The expert on anything was once a beginner" -Baseball poster I own.


    Left cprog on 1-3-2005. Don't know when I am coming back. Thanks to those who helped me over the years.

  2. #2
    S­énior Member
    Join Date
    Jan 2002
    Posts
    982
    I believe that is the way the professionals do it.

  3. #3
    Used Registerer jdinger's Avatar
    Join Date
    Feb 2002
    Posts
    1,065
    El, you're right. Like this:
    Code:
    //declares
    LPDIRECTDRAWSURFACE7 sfPrime=NULL; //primary surface
    LPDIRECTDRAWSURFACE7 sfBack=NULL; //backbuffer
    LPDIRECTDRAWSURFACE7 sfSprite=NULL; //your sprite to blit
    RECT rcSprite;
    
    //dd flip code
    sfBack->BltFast(0,0,sfSprite,rcSprite,DDBLTFAST_WAIT);
    sfPrime->Flip(NULL,DDFLIP_WAIT);
    If you want a huge speed boost use DDFLIP_NOVSYNC.

  4. #4
    left crog... back when? incognito's Avatar
    Join Date
    Oct 2001
    Posts
    1,427
    Yeah that's what I mean, thanks people.
    There are some real morons in this world please do not become one of them, do not become a victim of moronitis. PROGRAMMING IS THE FUTURE...THE FUTURE IS NOW!!!!!!!!!

    "...The only real game I thank in the world is baseball..." --Babe Ruth

    "Life is beautiful"-Don Corleone right before he died.

    "The expert on anything was once a beginner" -Baseball poster I own.


    Left cprog on 1-3-2005. Don't know when I am coming back. Thanks to those who helped me over the years.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Direct X initialization
    By Know_Your_Role in forum C++ Programming
    Replies: 1
    Last Post: 07-08-2009, 05:05 PM
  2. Simple window program
    By baniakjr in forum C++ Programming
    Replies: 5
    Last Post: 03-11-2006, 03:46 PM
  3. Direct X
    By MicroFiend in forum C++ Programming
    Replies: 2
    Last Post: 03-21-2003, 02:34 PM
  4. Very simple question, problem in my Code.
    By Vber in forum C Programming
    Replies: 7
    Last Post: 11-16-2002, 03:57 PM
  5. ...deceptively simple...
    By Sebastiani in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 07-29-2002, 01:51 PM

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