On 4/7/06, Tyler Nielsen <[EMAIL PROTECTED]> wrote: > Everyone, > > I commited code that saves and loads pngs... If anyone gets a chance try > running gfxtest.py now.
Works smooth :-). However, there might be a problem with endianess. The color of the rendered item is somewhat different than the actual png. I'll have a look at it, so don't worry. > Also, PNG files support > per pixel alpha. Right now I ignore it, but I can add support for it if > Adonthell can benefit from it. Any consensus here? I agree with Andrew here. Might be useful for spell effects. I had a few thought's on graphic loading in general. We'll probably have some objects that are composed of several png's, so they'll come with a description in xml format. But many will come as a single file, so we shouldn't require any additional xml files for them. So I would suggest a object loading mechanism that gets a filename without extension and first tries to load an xml file of that name, and if there isn't one, falls back to the png plain. Guess this functionality could go into our gfx cache. Kai _______________________________________________ Adonthell-devel mailing list Adonthell-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/adonthell-devel