Results 1 to 5 of 5

Thread: Animation with DCs and Backbuffers

  1. #1

    Thread Starter
    Junior Member neverbourn's Avatar
    Join Date
    Jan 2005
    Posts
    24

    Talking Animation with DCs and Backbuffers

    AFTER MANY HOURS...

    I have finally been able to grasp how to use:

    • Device Contexts

    • BackBuffers


    and so...i have attatched my application for open source.

    maybe you can rate this post?

    Enjoy and happy programming!

    Attached Files Attached Files
    Last edited by neverbourn; Feb 8th, 2005 at 02:04 AM.
    • Reusing pieces of code is like picking off sentences
      from other people's stories and trying to make a magazine article.


    • The concept of a program can be done in less than ten minutes.
      The difficult part is sitting at the computer for hours on end making it happen.

  2. #2
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Animation with DCs and Backbuffers

    Yeah. that is worth a rating. Maybe you will allow Electroman to add it to the code bank later on, so it is easier to find for new users. So we can redirect them to your sample when they are asking for back buffers.


    BTW did you find out what the bug was?



    I have here attached a sample version of your code. I just changed the back color of the real image, and then changed to the opposite colors on the mask. That way you will have to swith the vbSrcPaint and vbSrcAnd flags, just as I said, and it will still work.


    Link to sample:
    http://www.noteme.com/prog/mariomation2.zip

  3. #3

    Thread Starter
    Junior Member neverbourn's Avatar
    Join Date
    Jan 2005
    Posts
    24

    Re: Animation with DCs and Backbuffers

    yeah, actually the bug was in my animation and my blitting to the buffer.

    i can't remember exactly what it was. I think i was trying to blit the entire tileset to the image as opposed to just a section at a time.

    as far as allowing electroman to adding it to the code bank, i have no objection.
    Last edited by neverbourn; Feb 8th, 2005 at 01:41 PM.
    • Reusing pieces of code is like picking off sentences
      from other people's stories and trying to make a magazine article.


    • The concept of a program can be done in less than ten minutes.
      The difficult part is sitting at the computer for hours on end making it happen.

  4. #4
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Animation with DCs and Backbuffers

    Ok. at least nice too see it work. Keep up the good work.


    ØØ

  5. #5

    Thread Starter
    Junior Member neverbourn's Avatar
    Join Date
    Jan 2005
    Posts
    24

    Re: Animation with DCs and Backbuffers

    Thank you. I think it took me long enough, but I am very excited to have that knowledge now.

    this means I can advance in my programming and maybe sometime come out with a game of my own.
    • Reusing pieces of code is like picking off sentences
      from other people's stories and trying to make a magazine article.


    • The concept of a program can be done in less than ten minutes.
      The difficult part is sitting at the computer for hours on end making it happen.

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