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:
Jip 2024-05-02 20:32:10 +02:00
parent a380de3a44
commit b99359078e
601 changed files with 334759 additions and 69 deletions

View file

@ -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