Athena IO Library
Main Page
Classes
Files
File List
SpriteFileWriter.hpp
1
#ifndef ATHENA_NO_SAKURA
2
// This file is part of libAthena.
3
//
4
// libAthena is free software: you can redistribute it and/or modify
5
// it under the terms of the GNU General Public License as published by
6
// the Free Software Foundation, either version 3 of the License, or
7
// (at your option) any later version.
8
//
9
// libAthena is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
// GNU General Public License for more details.
13
//
14
// You should have received a copy of the GNU General Public License
15
// along with libAthena. If not, see <http://www.gnu.org/licenses/>
16
17
#ifndef SSPRITEFILEWRITER_HPP
18
#define SSPRITEFILEWRITER_HPP
19
20
#include "Athena/MemoryWriter.hpp"
21
22
namespace
Athena
23
{
24
namespace
Sakura
25
{
26
class
SpriteFile;
27
}
// Sakura
28
29
namespace
io
30
{
31
32
class
SpriteFileWriter
:
public
MemoryWriter
33
{
34
MEMORYWRITER_BASE();
35
public
:
36
SpriteFileWriter
(atUint8*
data
, atUint64
length
);
37
38
SpriteFileWriter
(
const
std::string&
filepath
);
39
40
void
writeFile(
Sakura::SpriteFile
* file);
41
};
42
43
}
// io
44
}
// zelda
45
#endif // SSPRITEFILEWRITER_HPP
46
#endif // ATHENA_NO_SAKURA
Athena::io::MemoryWriter::filepath
std::string filepath() const
Returns the target file.
Athena::io::SpriteFileWriter
Definition:
SpriteFileWriter.hpp:32
Athena::io::MemoryWriter::length
atUint64 length() const
Returns whether or not the stream is at the end.
Athena::Sakura::SpriteFile
Definition:
SpriteFile.hpp:46
Athena::io::MemoryWriter
Definition:
MemoryWriter.hpp:36
Athena::io::MemoryWriter::data
atUint8 * data() const
Returns a copy of the current buffer. Changes to the copy do not affect the buffer so it's perfectly...
Athena
Definition:
ALTTPEnums.hpp:23
include
Athena
SpriteFileWriter.hpp
Generated on Thu May 21 2015 01:59:39 for Athena IO Library by
1.8.9.1