*******************************************************************************/
-#ifndef _TEXTURE_HH_
-#define _TEXTURE_HH_
+#ifndef _MOOF_TEXTURE_HH_
+#define _MOOF_TEXTURE_HH_
/**
- * @file texture.hh
+ * @file Texture.hh
* Image-loading and OpenGL texture loading.
*/
#include <boost/shared_ptr.hpp>
-#include "opengl.hh"
-#include "resource.hh"
+#include <Moof/Resource.hh>
+#include <Moof/OpenGL.hh>
-namespace dc {
+namespace Mf {
-class texture : public resource
+class Texture : public Resource
{
public:
- texture(const std::string& name);
+ Texture(const std::string& name);
void bind();
GLuint getObject();
static std::string getPathToResource(const std::string& name);
- struct exception : std::runtime_error
+ struct Exception : std::runtime_error
{
- explicit exception(const std::string& what_arg) :
+ explicit Exception(const std::string& what_arg) :
std::runtime_error(what_arg) {}
};
private:
- class texture_impl;
- boost::shared_ptr<texture_impl> impl;
+ class TextureImpl;
+ boost::shared_ptr<TextureImpl> impl_;
};
-} // namespace dc
+} // namespace Mf
-#endif // _TEXTURE_HH_
+#endif // _MOOF_TEXTURE_HH_
/** vim: set ts=4 sw=4 tw=80: *************************************************/