palito-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [palito-dev] new user. some questions... some answers.


From: barrett
Subject: Re: [palito-dev] new user. some questions... some answers.
Date: Wed, 9 Jul 2003 11:15:28 -0300
User-agent: Mutt/1.4i

On Tue, Jul 08, 2003 at 12:23:20PM -0400, Alan Bort wrote:
> the graphics problem, the portability I mean, could be solved with a
> simple clinet/daemon-like software.... You know, having the same engine
> for all platforms, and  having a small client to handle the graphics...

This is what Flush is for.

> There you could add the DX for windows and GTK for GNU/Linux... or any
> other standard library... (I don?t know the active graphics library of
> Linux... but I think ther is openGL support...)

We were actualy using X11 (or SDL) for Linux and the standard GDI for
Windows.  In Flush, there is only one plataform-dependent source file,
x11.c, sdl.c and win32.c.

It all worked reasonably well until we started using bitmaps for the
terrain. The bitmap functions on Windows GDI seems to be badly implemented
these days (because everyone uses DirectX?), and that seems to be the
source of most portability problems.

The reason to choose X11/WinGDI was the hardware accelerated graphic
primitives (lines, etc), not present in any other library.
GTK is out of question (too complex for a simple game).
We'll probably stick with SDL (have to make it compile/run under windows
first..) and later SDL/OpenGL for hardware acceleration and maybe 3D units.
But for now I'll not worry about that, and continue to develop the
new version based on the old Flush engine.


barrett.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]