]> git.tdb.fi Git - libs/gui.git/commit
Make the image loading code more modular
authorMikko Rasa <tdb@tdb.fi>
Sat, 5 Oct 2013 23:00:57 +0000 (02:00 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 5 Oct 2013 23:00:57 +0000 (02:00 +0300)
commitcfd3548464e6424fc9decf0539d6cd04b031ba10
tree66faaa63475c4cd086f90f604da82139e57f5416
parent12df88ecf9787f4ed59051646775165b74301cf0
Make the image loading code more modular

Instead of being embedded in the Image class, there's now a separate
ImageLoader class with subclasses for each image type.  In the future
some kind of plugin system may be implemented.

DevIL code was also extensively reworked to get rid of the need to read
the entire file to memory.
14 files changed:
Build
source/graphics/devil/devilloader.cpp [new file with mode: 0644]
source/graphics/devil/devilloader.h [new file with mode: 0644]
source/graphics/image.cpp
source/graphics/image.h
source/graphics/image_devil.cpp [deleted file]
source/graphics/image_devil.h [deleted file]
source/graphics/image_png.cpp [deleted file]
source/graphics/image_png.h [deleted file]
source/graphics/image_private.h [deleted file]
source/graphics/imageloader.cpp [new file with mode: 0644]
source/graphics/imageloader.h [new file with mode: 0644]
source/graphics/png/pngloader.cpp [new file with mode: 0644]
source/graphics/png/pngloader.h [new file with mode: 0644]