[SDL] accessing on video surface from two processes.

Alex Volkov avcp-sdlmail at usa.net
Mon Jun 19 14:23:28 PDT 2006


Thomas Mueller wrote:
> My problem:
> I would like to use SDL commands from a scripted environment.
> Precisely I want to use "octave" (http://www.gnu.org/software/octave/) 
> to produce some SDL graphics.

> Thomas Mueller wrote:
> > I would like to access a video surface from a second process.

Yeah, if you want to do it this way, you should definitely create an
SDL-window owner process that will act as a graphics server for your
octave(?) clients. Just come up with a minimal gfx interface that you need
(i.e. Point, Line, Rect, Ellipse, Text primitives) and send these commands
from clients to your server over pipes or sockets, for example.
Since octave uses gnuplot to do the drawing, I suppose you could hack
gnuplot to do some of the work for you, or perhaps write a printer driver
that will forward the rendering commands to your SDL-window server. This
will be, however, already outside the SDL mailing list topics.

-Alex.






More information about the SDL mailing list