X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FTexture.hh;fp=src%2Ftexture.hh;h=e858093e1a44afa06b44d50dcc5eac80503855e7;hp=f92ad23faf06db7c16c59c2d22d107ec6ad920e7;hb=c2321281bf12a7efaedde930422c7ddbc92080d4;hpb=87bc17e55b0c1dc73ecc66df856d3f08fd7a7724 diff --git a/src/texture.hh b/src/Moof/Texture.hh similarity index 83% rename from src/texture.hh rename to src/Moof/Texture.hh index f92ad23..e858093 100644 --- a/src/texture.hh +++ b/src/Moof/Texture.hh @@ -26,11 +26,11 @@ *******************************************************************************/ -#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. */ @@ -38,17 +38,17 @@ #include -#include "opengl.hh" -#include "resource.hh" +#include +#include -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(); @@ -65,21 +65,21 @@ public: 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 impl; + class TextureImpl; + boost::shared_ptr impl_; }; -} // namespace dc +} // namespace Mf -#endif // _TEXTURE_HH_ +#endif // _MOOF_TEXTURE_HH_ /** vim: set ts=4 sw=4 tw=80: *************************************************/