On Tue, Jan 11, 2005 at 04:03:42PM +0100, Gert-Jan de Boer wrote:
> Hey Wagnerf ( and the rest ),

hi,

> Do you have something to do for me? I saw "image engine"
> but what do you mean with that?

two things.

first we need a new image class.

because with multi-resolution support images will not be kept in memory
at a different size than the size they'll need to be displayed
so we'll need other fields like width_to_display and height_to_display
associated to an SDL_Surface.
also with GL we'll need a mask surface for transparent pixels.
and maybe other infos like do we use alpha blending, etc....

ok, now for the image engine

we need something like the sound engine :

some images are going to be needed on different screens in the game.
we don't want to load, free, reload images all the time nor to have
duplicated images in memory.

so 2 possibilities.

1) declare a lot of variables (one for each image) as extern which is a
bad option

2) use some hash tables as is now used in sound.cc (you can take a look,
it's rather easy). this approach is used for example in the crystal
space engine.

but to do that we first need to make an image class.
as this is dependent on the opengl process we need to wait a bit first.

to pablo: about the choices we talked about for memory i'll quickly take
a look at supertux source code tonight, to see what they have chosen.

=======

so what can you other people do ?

damn good question.

this part : "code to choose wich graphics theme to use (config file),
modify image loader methode" shouldn't be too hard to do
(of course we'll need to modify some code after the introduction of the
new image class so maybe we should wait ?) but we need to think a bit
about where to place the new data set
especially before commiting to cvs.

I'll be at the university tonight (21h local time) so what about a
little irc meeting for whose who can ?

I'll try to think at some other small things to do

one possibility would be to finish the cfgnew screen (displaying the
race short texts)

Fred
-- 
Why fear computers ? They don't byte !

Attachment: signature.asc
Description: Digital signature

Reply via email to