[SDL] Writing directly on screen

Paul Holt pcholt at gmail.com
Tue Sep 25 18:06:45 PDT 2007


I think PyGame would be good for this. It's a quick and easy way to use SDL
for little projects like this. Hold on a minute I'll get you some sample
code.

On 9/26/07, Carlo Capocasa <capocasa at gmx.net> wrote:
>
> Thanks! Much appreciated.
>
> > If you mean as a way to just display text over, say, a viewed webpage,
> > then not really.
>
> So in other words, there is no way to use SDL to directly manipulate
> video memory in a cross-platform way. Or make the main SDL window
> partially translucent. (1-bit alpha would be sufficient).
>
> > SDL is intended to work as an executable, independant program (is this
> > making any sense?!) either as a Windows app or under some flavour of
> Linux.
>
> Yeah. I want to run the app as a daemon/service.
>
> > I guess you could grab the current screen data (somehow) and then
> > overlay your text on it, under SDL, using a full-screen mode, and should
> > the user move the mouse (for instance) then the SDL app would exit.
> > Possible but quite tricky.
>
> Yeah... I have a hunch that's too much overhead for the quick
> flashing I have in mind (exiting would actually be done by timer,
> e.g. after 0.02 seconds).
>
> Need to give this some more thought... Maybe just low-level
> programming this for all three platforms would work better.
>
> Thanks for your input!
>
> Carlo
>
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>



-- 
Paul Holt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20070926/3d2be933/attachment.html 


More information about the SDL mailing list