Chaos Project

Featured Projects => Tasks => Advanced RPG Creator => Finished Tasks => Topic started by: Ryex on October 25, 2011, 04:42:27 pm

Title: [Finshed] [ARCed] RTP Image Cache and RTP Paths
Post by: Ryex on October 25, 2011, 04:42:27 pm
RTP Image Cache and RTP Paths




Description

RTP Paths need to be configurable for the editor and per project and There needs to be an image cache that can keep these images around so that they don;t have to be reloaded each time they are accessed. particularly important for the map editor, Tileset panel ect.



Priority

High



Prerequisites

None



Assigned

Ryex



Everything else

The cache should search the RTP paths in the user specified order for images with the provided file name and should work regardless of the presence of a file extension.
The base cache should run on PIL there needs to be an interface to get wx versions of the images too.
Pyglet also needs to have an instance based cache that draws from the global PIL cache. Because of a bug in the somewhat hackish way pyglet is interfaced with wx two contexts can't share the same resources so each context needs it's instance of the cache.