X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FTexture.hh;h=cdb6059ceff00d039a41a8b68f6bae45a543f84c;hp=2ab4710cf55202dfd986808b820812be5b5fe5cf;hb=bfa6212d09d8735d8fd5e2638188e4a99f21ada4;hpb=16d1a05b0777e97a45c48e2874aa4e5cc791282e diff --git a/src/Moof/Texture.hh b/src/Moof/Texture.hh index 2ab4710..cdb6059 100644 --- a/src/Moof/Texture.hh +++ b/src/Moof/Texture.hh @@ -50,18 +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(); + + unsigned getWidth() const; + unsigned getHeight() const; 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 { @@ -70,8 +72,8 @@ public: }; private: - class TextureImpl; - boost::shared_ptr impl_; + class Impl; + boost::shared_ptr impl_; };