X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FTexture.hh;h=cdb6059ceff00d039a41a8b68f6bae45a543f84c;hp=e858093e1a44afa06b44d50dcc5eac80503855e7;hb=bfa6212d09d8735d8fd5e2638188e4a99f21ada4;hpb=c2321281bf12a7efaedde930422c7ddbc92080d4 diff --git a/src/Moof/Texture.hh b/src/Moof/Texture.hh index e858093..cdb6059 100644 --- a/src/Moof/Texture.hh +++ b/src/Moof/Texture.hh @@ -38,8 +38,8 @@ #include -#include #include +#include namespace Mf { @@ -50,20 +50,20 @@ class Texture : public Resource public: Texture(const std::string& name); - void bind(); - GLuint getObject(); + void bind() const; + GLuint getObject() const; - unsigned getWidth(); - unsigned getHeight(); + static void resetBind(); - void setMinFilter(GLuint filter); - void setMaxFilter(GLuint filter); - void setWrapU(GLuint wrap); - void setWrapV(GLuint wrap); + unsigned getWidth() const; + unsigned getHeight() const; - void applyChanges(); + void setMinFilter(GLuint filter); + void setMagFilter(GLuint filter); + void setWrapS(GLuint wrap); + void setWrapT(GLuint wrap); - static std::string getPathToResource(const std::string& name); + static std::string getPath(const std::string& name); struct Exception : std::runtime_error { @@ -72,8 +72,8 @@ public: }; private: - class TextureImpl; - boost::shared_ptr impl_; + class Impl; + boost::shared_ptr impl_; };