mirror of
https://github.com/simtactics/mysimulation.git
synced 2025-07-12 17:22:26 -04:00
managed to get the projects compiling, jpg has been disabled for now and I wasn't able to test the runtime until I can get my hands on the files required by libgldemo
This commit is contained in:
parent
a380de3a44
commit
b99359078e
601 changed files with 334759 additions and 69 deletions
|
@ -26,7 +26,7 @@
|
|||
#include <string.h>
|
||||
|
||||
#ifdef WIN32
|
||||
#define fhexport __declspec(dllexport);
|
||||
#define fhexport __declspec(dllexport);
|
||||
#else
|
||||
#define fhexport __attribute__((visibility("default")));
|
||||
#endif
|
||||
|
@ -71,4 +71,20 @@ struct Sound_t
|
|||
uint8_t *Data;
|
||||
};
|
||||
|
||||
namespace File {
|
||||
inline size_t GetFileSize(FILE * hFile){
|
||||
fseek(hFile, 0, SEEK_END);
|
||||
size_t FileSize = ftell(hFile);
|
||||
fseek(hFile, 0, SEEK_SET);
|
||||
return FileSize;
|
||||
}
|
||||
|
||||
extern int Error;
|
||||
extern size_t FileSize;
|
||||
|
||||
fhexport uint8_t * ReadFile(const char * Filename);
|
||||
fhexport Image_t * ReadImageFile(const char * Filename);
|
||||
fhexport Sound_t * ReadSoundFile(const char * Filename);
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue