| author | ecalot
<ecalot> 2004-06-13 06:59:02 UTC |
| committer | ecalot
<ecalot> 2004-06-13 06:59:02 UTC |
| parent | f9ab5613ebec09b32f0a93ba0a1816216862b77d |
| FP/src/include/resources.h | +33 | -6 |
diff --git a/FP/src/include/resources.h b/FP/src/include/resources.h index fd65fb8..890df5f 100644 --- a/FP/src/include/resources.h +++ b/FP/src/include/resources.h @@ -33,17 +33,44 @@ resources.h: Free Prince : Resource Handler #ifndef _RESOURCES_H_ #define _RESOURCES_H_ -int resOpenFile(const char* file); +//int resOpenFile(const char* file); /* Opens file, loads the data into memory, closes the file and * returns an ID number (data descriptor) for the new structure. */ -resCloseFile(int dd); /* dd = data descriptor */ +//resCloseFile(int dd); /* dd = data descriptor */ /* Frees the data from memory. */ -resCloseAllFiles(); +//resCloseAllFiles(); /* Functions for getting data previously loaded into memory. Each dd points * to an array of elements, and resId indicates the index in this array. */ -tMidi resGetMidi(int dd, int resId); -tWave resGetWave(int dd, int resId); -tImage resGetImage(int dd, int resId); +//tMidi resGetMidi(int dd, int resId); +//tWave resGetWave(int dd, int resId); +//tImage resGetImage(int dd, int resId); + +enum tDataType {eImages=2,eWave,eMidi,eLevels} + +typedef struct tData { + int frames; + tDataType type; + void* pFrames; +}tData; + +tData* resLoad(int id); +/* Function for getting data previously loaded into memory. All id's are + * defined in data.h generated by the resource manager and indexer. + * + * In case the data couldn't be retreived the NULL value will be returned + * in any other case a struct to the tData structure will be returned. + */ + + + + + + + + + + + #endif