author | terom@terom-desktop |
Thu, 24 Jul 2008 16:18:29 +0300 | |
changeset 11185 | 5036deb1fcaf |
parent 10751 | ebd94f2d6385 |
permissions | -rw-r--r-- |
7392
a716551b0c7f
(svn r10143) -Add: store the filename of the grfs opened and allow easy access to the name
truelight
parents:
diff
changeset
|
1 |
/* $Id$ */ |
a716551b0c7f
(svn r10143) -Add: store the filename of the grfs opened and allow easy access to the name
truelight
parents:
diff
changeset
|
2 |
|
10429
1b99254f9607
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium
parents:
8870
diff
changeset
|
3 |
/** @file png.hpp Base for reading files from PNG. */ |
7392
a716551b0c7f
(svn r10143) -Add: store the filename of the grfs opened and allow easy access to the name
truelight
parents:
diff
changeset
|
4 |
|
a716551b0c7f
(svn r10143) -Add: store the filename of the grfs opened and allow easy access to the name
truelight
parents:
diff
changeset
|
5 |
#ifndef SPRITELOADER_PNG_HPP |
a716551b0c7f
(svn r10143) -Add: store the filename of the grfs opened and allow easy access to the name
truelight
parents:
diff
changeset
|
6 |
#define SPRITELOADER_PNG_HPP |
a716551b0c7f
(svn r10143) -Add: store the filename of the grfs opened and allow easy access to the name
truelight
parents:
diff
changeset
|
7 |
|
a716551b0c7f
(svn r10143) -Add: store the filename of the grfs opened and allow easy access to the name
truelight
parents:
diff
changeset
|
8 |
#include "spriteloader.hpp" |
a716551b0c7f
(svn r10143) -Add: store the filename of the grfs opened and allow easy access to the name
truelight
parents:
diff
changeset
|
9 |
|
a716551b0c7f
(svn r10143) -Add: store the filename of the grfs opened and allow easy access to the name
truelight
parents:
diff
changeset
|
10 |
class SpriteLoaderPNG : public SpriteLoader { |
a716551b0c7f
(svn r10143) -Add: store the filename of the grfs opened and allow easy access to the name
truelight
parents:
diff
changeset
|
11 |
public: |
a716551b0c7f
(svn r10143) -Add: store the filename of the grfs opened and allow easy access to the name
truelight
parents:
diff
changeset
|
12 |
/** |
a716551b0c7f
(svn r10143) -Add: store the filename of the grfs opened and allow easy access to the name
truelight
parents:
diff
changeset
|
13 |
* Load a sprite from the disk and return a sprite struct which is the same for all loaders. |
a716551b0c7f
(svn r10143) -Add: store the filename of the grfs opened and allow easy access to the name
truelight
parents:
diff
changeset
|
14 |
*/ |
10751
ebd94f2d6385
(svn r13301) -Fix [FS#1997]: resolve more MSVC 9 x64 warnings.
rubidium
parents:
10429
diff
changeset
|
15 |
bool LoadSprite(SpriteLoader::Sprite *sprite, uint8 file_slot, size_t file_pos); |
7392
a716551b0c7f
(svn r10143) -Add: store the filename of the grfs opened and allow easy access to the name
truelight
parents:
diff
changeset
|
16 |
}; |
a716551b0c7f
(svn r10143) -Add: store the filename of the grfs opened and allow easy access to the name
truelight
parents:
diff
changeset
|
17 |
|
a716551b0c7f
(svn r10143) -Add: store the filename of the grfs opened and allow easy access to the name
truelight
parents:
diff
changeset
|
18 |
#endif /* SPRITELOADER_PNG_HPP */ |