#include <sdlpp_io.h>
Public Member Functions | |
ResourceFileWriter (const char *filename, bool append=true) | |
void | add_resource (const char *filename) |
void | add_resource (const char *name, const char *buffer, int length) |
This class is used to create a resource file. It is usually used outside the main application by a utility that gathers various data files and creates a single aggregate.
The utility rscfile uses this class.
SDLPP::ResourceFileWriter::ResourceFileWriter | ( | const char * | filename, | |
bool | append = true | |||
) |
Open a resource file for writing. If append is true, new resources will be added while maintaining the existing ones. Otherwise, existing resources will be removed.
void SDLPP::ResourceFileWriter::add_resource | ( | const char * | name, | |
const char * | buffer, | |||
int | length | |||
) |
Add a resource from a memory buffer.
void SDLPP::ResourceFileWriter::add_resource | ( | const char * | filename | ) |
Add a resource by copying the contents of a file.