Re: [Tuxnes-devel] Trying to add SDL Renderer
Brought to you by:
tmmm
From: Jim U. <ji...@3e...> - 2002-03-09 15:52:12
|
At 06:37am on 2002 March 09, W. Michael Petullo did write: > 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: > drawimage(PBL) > Memory Copy (SDLbuf, p, 240 * 256) > SDL Display(SDLbuf) I'm curious--why don't you have the render draw directly into the SDL buffer? Looks like you're doing double work. Anyway, if you want an example of rendering look at the GGI renderer, it's probably easier to follow than X11 because the operation is similar to SDL (as far as I know). -- "You cannot simultaneously have mass adoption and rigor" -- Clay Shirky ji...@3e... / 0x43340710 / 517B C658 D2CB 260D 3E1F 5ED1 6DB3 FBB9 4334 0710 |