diff options
Diffstat (limited to 'src/spriteloader')
-rw-r--r-- | src/spriteloader/spriteloader.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/spriteloader/spriteloader.hpp b/src/spriteloader/spriteloader.hpp index 5a37abc2d..c75f4685c 100644 --- a/src/spriteloader/spriteloader.hpp +++ b/src/spriteloader/spriteloader.hpp @@ -82,5 +82,14 @@ public: * Convert a sprite from the loader to our own format. */ virtual Sprite *Encode(const SpriteLoader::Sprite *sprite, AllocatorProc *allocator) = 0; + + /** + * Get the value which the height and width on a sprite have to be aligned by. + * @return The needed alignment or 0 if any alignment is accepted. + */ + virtual uint GetSpriteAlignment() + { + return 0; + } }; #endif /* SPRITELOADER_HPP */ |