MORTEVIELLE: Implemented loading of the font data, and rewrote drawing routines to use it.

This commit is contained in:
Paul Gilbert 2012-01-05 07:56:45 +11:00 committed by Strangerke
parent 60f287c85d
commit 1727798a8e
9 changed files with 182 additions and 14 deletions

View file

@ -107,7 +107,7 @@ void openOutputFile(const char *outFilename) {
outputFile.open(outFilename, kFileWriteMode);
// Write header
outputFile.write("mort", 4);
outputFile.write("MORT", 4);
outputFile.writeByte(VERSION_MAJOR);
outputFile.writeByte(VERSION_MINOR);
}
@ -132,7 +132,9 @@ void process() {
// Write out a section header to the output file and the font data
char fontHeader[4] = { 'F', 'O', 'N', 'T' };
outputFile.write(fontHeader, 4);
outputFile.write(fontHeader, 4); // Section Id
outputFile.writeWord(121 * 6); // Section size
outputFile.write(fontBuffer, 121 * 6);
}