Closed mschwartz closed 5 years ago
Right now rcomp supports BITMAP, but the idea is for it to support ALL the binary kinds of resources for games.
Thus, we want to support music files, sound files, instrument files all loaded and packed into the Resources.bin file with #defines generated in Resources.h and appropriate Load*() routines in BResourceManager.
@jaygarcia
SOUND filename.wav
SONG filename.xm
ResourceManager:
LoadSound() LoadSong()
SoundSlot struct SongSlot struct
struct SongSlot {
TInt mResourceID;
BSong *mSong;
}
class BSong {
TAny *mData;
TUint32 mSize;
};
BSong *mySong = resourceManager.GetSong(slot_number);
Alternatively, we can just do "RAW" resources.
They have mData and mSize.
A RAW resource can be any "thing" like a text file or a wav, etc.
struct RawSlot {
TInt mResourceID;
BRaw *mRaw;
}
class BRaw {
TAny *mData;
TUint32 mSize;
};
BRaw *mySong = resourceManager.GetRaw(slot_number);
BRaw *mySound = resourceManager.GetRaw(slot_number);
Just do RAW
Need input from Jay.