[SDL] SDL and Win32 processes

Josh Matthews mrlachatte at gmail.com
Mon Oct 1 13:30:09 PDT 2007


For a game I'm writing, I created a simple console emulator that draws
text on screen and allows user input, and I have it running in a
separate thread from the main game.  It's rather simple, and just
requires a single mutex to keep the game from writing to the log at
the same time as it's being read.

On 10/1/07, Roger <roger.levy at gmail.com> wrote:
> Hi,
>
> I want to create an application where a piece of code associated with the SDL
> window runs continually, drawing the frame and processing input, whether it is
> the top window or not.  (Kind of like the way a game or emulator will continue
> running in the background, but in this I want it to be part of the same
> application.)
>
> I have a console window that I want to still be able to type into and debug the
> program with while it runs.  I'd like to be able to treat the background process
> like a callback that is executed once each new frame.
>
> Does anyone have any advice on how it might be possible to do this?
>
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>


-- 
Cheers,
Josh

PGP: http://revvy.box43.net/Josh_Matthews.asc


More information about the SDL mailing list