[Tuxnes-devel] Trying to add SDL Renderer
Brought to you by:
tmmm
From: W. M. P. <mi...@fl...> - 2002-03-09 13:30:52
|
I'm trying to add an SDL renderer to tuxnes. Eventually this will give us full-screen support and additional platforms for free. After looking at the X11 renderer code, I concluded that the global variable fb is a video frame buffer filled by tuxnes's emulator code. I thought that the following pseudo code would display a NES frame: Init: bpp = 8 fbinit () Update: drawimage(PBL) Memory Copy (SDLbuf, p, 240 * 256) SDL Display(SDLbuf) When I implement this, the video displayed looks like static and does not move. Even if I had some video parameters wrong, I would expect the video show some type of motion. Could someone please describe to me the correct process to retrieve and display a video frame from the rendering engine? Thanks. -- Mike :wq |