- typdef TFileFormatAdapter* (*FileFormatAdapterGenerator)(string FileFormat)
- struct FileFormatAdapter
- {
- string Extension;//"png","avi","3ds","xml"
- FileFormatAdapterGenerator GetAdapter;//bei obj pascal könnte man statt eines callbacks auch Adapter:class of TAdapter; verwenden
- };
- class TTextureManager
- {
- public:
- vector<FileFormatAdapter> AdapterList;//objpascal ne klasse von TList ableiten oder ein array of FileFormatAdapter
- };