]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Texture.hh
preliminary physics, sound, hud
[chaz/yoink] / src / Moof / Texture.hh
index 2ab4710cf55202dfd986808b820812be5b5fe5cf..cdb6059ceff00d039a41a8b68f6bae45a543f84c 100644 (file)
@@ -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<TextureImpl> impl_;
+       class Impl;
+       boost::shared_ptr<Impl> impl_;
 };
 
 
This page took 0.017637 seconds and 4 git commands to generate.