Results 1 to 3 of 3

Thread: Blitting

  1. #1

    Thread Starter
    Frenzied Member CyberCarsten's Avatar
    Join Date
    Sep 1999
    Location
    Aalborg Ø, Denmark
    Posts
    1,544

    Blitting

    Hi!
    I'm programming a PingPong game!
    I have to bats on the left and right of the screen.
    If i then use a blitter (directx) to move the bats, will the bat stay at is current position and then paint a new bat at the other location so I end up with a long "pole" on the screen??
    razor
    Software Engineer Student, Aalborg University, Denmark
    http://www.cs.auc.dk

    My email at AUC: will get a new email soon
    My website: http://www.razorsoftware.net


    Windows XP Pro/ Gentoo Linux (Laptop)
    Windows XP Pro (Home PC)

  2. #2
    Hyperactive Member
    Join Date
    Feb 2001
    Posts
    421
    You need to clear the DC and redraw everything again. If you're using a PictureBox or a Form, then the .Cls action should take care of it.

    VB Code:
    1. Private Sub Blit()
    2.     Form1.Cls
    3.     'blitting code...
    4. End Sub
    All it does is clear the DC.
    [vbcode]
    ' comment
    Rem remark
    [/vbcode]

  3. #3
    Fanatic Member Mushroom Realm's Avatar
    Join Date
    Mar 2002
    Location
    Murrieta, California
    Posts
    650
    i think hes using c++, u could bitblt ur background color to the screen, then put the bat there

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width