New Paste :: Recent Pastes:: No Line Numbers
A Paste by Anonymous
1
#ifndef _RESOURCE_H__ #define _RESOURCE_H__ /////////////////////////////////////////////////////////////////////// #include <string> /////////////////////////////////////////////////////////////////////// class Resource { std::string m_Name; public: virtual ~Resource() { } // Returns pointer if found, otherwise returns 0 virtual Resource* Load( std::string& dir, std::string& name ) { return this; } }; /////////////////////////////////////////////////////////////////////// #endif #ifndef _TEXTURE_H__ #define _TEXTURE_H__ /////////////////////////////////////////////////////////////////////// #include "Resource.h" /////////////////////////////////////////////////////////////////////// class Texture : public Resource { public: ~Texture() { } // Returns pointer if found, otherwise returns 0 Texture* Load( std::string dir, std::string name ) { return this; } }; /////////////////////////////////////////////////////////////////////// #endif