#ifndef __MODEL_LOADER_HXX #define __MODEL_LOADER_HXX 1 #ifndef __cplusplus # error This library requires C++ #endif #include // for SG_USING_STD #include SG_USING_STD(map); #include SG_USING_STD(string); #include /** * Base class for loading and managing SSG things. */ class FGSSGLoader { public: FGSSGLoader (); virtual ~FGSSGLoader (); virtual void flush (); protected: std::map _table; }; /** * Class for loading and managing models with XML wrappers. */ class FGModelLoader : public FGSSGLoader { public: FGModelLoader (); virtual ~FGModelLoader (); virtual ssgEntity * load_model (const string &path); }; /** * Class for loading and managing textures. */ class FGTextureLoader : public FGSSGLoader { public: FGTextureLoader (); virtual ~FGTextureLoader (); virtual ssgTexture * load_texture (const string &path); }; #endif