4 * Created on: Sep 15, 2012
8 #ifndef LOADER_OBJECTFILE_H_
9 #define LOADER_OBJECTFILE_H_
15 const int FORMAT_ID(1);
17 struct ObjectFileHeader {
28 int exportStringsBegin;
31 int externalStringsBegin;
32 int externalStringsEnd;
61 struct ImageProperties {
73 struct LoadedObjectFile {
75 ObjectFileHeader *fileHeader;
77 TypeOffset *typeOffsetsBegin;
78 TypeOffset *typeOffsetsEnd;
83 External *externalsBegin;
84 External *externalsEnd;
86 char *exportStringsBegin;
87 char *exportStringsEnd;
89 char *externalStringsBegin;
90 char *externalStringsEnd;
98 SDL_Surface **surfaces;
103 char *At(int offset) { return reinterpret_cast<char *>(fileHeader) + offset; }
106 struct LoadedExport {
113 #endif /* LOADER_OBJECTFILE_H_ */