GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


New Paste :: Recent Pastes:: Add Line Numbers


A Paste by Anonymous
#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