Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2003:
[Freeciv-Dev] Re: unit animation
Home

[Freeciv-Dev] Re: unit animation

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: unit animation
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Tue, 26 Aug 2003 09:29:36 +0000 (GMT)

On Tue, 26 Aug 2003, Lukas [iso-8859-15] Tönne wrote:
> Apart from that i more and more like the idea of writing an OpenGL client for
> freeciv.

Yes, this is a fascinating idea :-)

> I personally prefer C++ instead of C, so maybe this would be a good
> point to write an OOP client ? Yes, i know there are lots of good reasons to
> use the existing freeciv code, but i think that this is already quite complex
> and difficult especially for newbies and will get even more confusing as more
> features, options, etc. are implemented.

Just make sure you use the client common code and that you work with cvs
current code.

> Going over to object oriented code could solve this problem, and since
> much of the code used in "2D" clients might be useless when using 3D
> graphics this could bethe moment to do this. I already started some
> (very basic) coding in C++ using ClanLib ( http://clanlib.org ). Please
> tell me if this the right way or not ...:)

Daniel Bennett began writing a client in C++ for ParaGUI
(http://www.paragui.org/). You could probably look at his work to draw
inspiration and possibly code, but his homepage with his code seems to be
gone. Do anyone have a copy?

Also, he found some incompatibilities between the freeciv C code and C++,
which needs to be fixed. This was the typedef int bool from shared.h and
an STL problem with using "map" as the name of a variable.

ParaGUI seems to me as a better choice than ClanLib, since it is more
portable (being built on top of SDL), but that is your choice.

  - Per



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