Initial commit.
This commit is contained in:
commit
44b5f2392f
98 changed files with 11750 additions and 0 deletions
28
texture.h
Normal file
28
texture.h
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
// -*- 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue