Drawing

This is a discussion on Drawing within the Game Programming forums, part of the General Programming Boards category; I'm making a gameboy emulator in the same stlye as visual boy advance (normal windows gui with a full width ...

  1. #1
    Mmm. Purple.
    Join Date
    May 2002
    Posts
    154

    Drawing

    I'm making a gameboy emulator in the same stlye as visual boy advance (normal windows gui with a full width and height area with the video)
    i was wondering how i could achieve fast results, as using SetPixel with my engine gives less than 2fps. Someone had suggested making a DIB and writing to that then blitting it all the to screen at once, i tried that but i couldn't get it to work thanks to the lack of information i could find, so does anyone have a tutorial or some template code i could use?

  2. #2
    i dont know Vicious's Avatar
    Join Date
    May 2002
    Posts
    1,200
    Ohhh, Im making a gb emu also, although Im not quite into the drawing state yet.

    I'll let you know if I find anything!

  3. #3
    Mmm. Purple.
    Join Date
    May 2002
    Posts
    154
    i recommend making the LCD *FIRST*.
    i made the same mistake, i programmed about 20 opcodes and debugged them all, then i realised by that time that half the code needed to be rewritten for the LCD to even stand a chance of working, just advise, perhaps you've made your code better than my first attempt and will be pretty adaptable.

  4. #4
    i dont know Vicious's Avatar
    Join Date
    May 2002
    Posts
    1,200
    Quote Originally Posted by krappykoder
    i recommend making the LCD *FIRST*.
    i made the same mistake, i programmed about 20 opcodes and debugged them all, then i realised by that time that half the code needed to be rewritten for the LCD to even stand a chance of working, just advise, perhaps you've made your code better than my first attempt and will be pretty adaptable.
    ooops...

  5. #5
    Registered User lobo's Avatar
    Join Date
    Oct 2001
    Posts
    71
    hmm, i can send you some "template code" if you want .. i left SetPixel() and similar functions next day i met them

  6. #6
    Mmm. Purple.
    Join Date
    May 2002
    Posts
    154
    Yea sure, some template code would rock, sorry for the lagged responce i had to sleep :P

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Drawing HBITMAP into CWnd, Acquired from "screenshot"
    By DeusAduro in forum Windows Programming
    Replies: 6
    Last Post: 07-02-2009, 03:41 PM
  2. Slow drawing code
    By tjpanda in forum Windows Programming
    Replies: 5
    Last Post: 05-09-2008, 05:09 PM
  3. Line Drawing Algorithm
    By Axpen in forum Game Programming
    Replies: 15
    Last Post: 08-01-2005, 06:30 PM
  4. How to do double buffing with win32 drawing?
    By Josh Kasten in forum Windows Programming
    Replies: 2
    Last Post: 03-26-2004, 11:02 PM
  5. drawing minimaps and radar screens.
    By Eber Kain in forum Game Programming
    Replies: 4
    Last Post: 03-08-2002, 10:44 AM

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