polly-b-gone/src/texture.h
2012-12-14 10:07:01 -08:00

28 lines
370 B
C++

// -*- C++ -*-
#ifndef MBOSTOCK_TEXTURE_H
#define MBOSTOCK_TEXTURE_H
#include <OpenGL/gl.h>
namespace mbostock {
class Texture {
public:
virtual ~Texture() {}
virtual void bind() const = 0;
};
class Textures {
public:
static const Texture& fromFile(const char* path);
static void initialize();
private:
Textures();
};
}
#endif