Some issues with BitmapStorage
Closed this issue · 0 comments
axx0 commented
-
The
Raylib.LoadImageFromMemory
function for _imageCache
works well only for gifs but not for bmps so we probably have to use our custom implementation here (I'm referring toLoadPropertiesFromPic
function in RaylibUtils). -
We probably don't need to define transparent colours in BitmapStorage and then do this:
since transparent colours are already defined in the colour palette of the file (pngs work different but we already deal with that). If 1) is solved then the cached image will have transparent colours fixed. -
Extraction of images and textures in
CityLoader
,TerrainLoader
, etc. differs from the implementation mentioned in 1) with _imageCache. This needs to be cleaned up so that the bitmap & texture loading logic is consistent throughout the project.
I can try to deal with this.