]> Dogcows Code - chaz/yoink/blobdiff - src/texture.hh
big batch of progress
[chaz/yoink] / src / texture.hh
index 1be4c5a004287fe51fc7e0832870e638055d13fe..f92ad23faf06db7c16c59c2d22d107ec6ad920e7 100644 (file)
 
 #include <boost/shared_ptr.hpp>
 
-#include "resource.hh"
 #include "opengl.hh"
+#include "resource.hh"
 
 
 namespace dc {
 
 
-class texture_impl;
-
 class texture : public resource
 {
 public:
-       texture(const std::string& name, bool keepInMemory = false);
+       texture(const std::string& name);
 
        void bind();
        GLuint getObject();
@@ -58,6 +56,15 @@ public:
        unsigned getWidth();
        unsigned getHeight();
 
+       void setMinFilter(GLuint filter);
+       void setMaxFilter(GLuint filter);
+       void setWrapU(GLuint wrap);
+       void setWrapV(GLuint wrap);
+
+       void applyChanges();
+
+       static std::string getPathToResource(const std::string& name);
+
        struct exception : std::runtime_error
        {
                explicit exception(const std::string& what_arg) :
@@ -65,6 +72,7 @@ public:
        };
 
 private:
+       class texture_impl;
        boost::shared_ptr<texture_impl> impl;
 };
 
@@ -73,3 +81,5 @@ private:
 
 #endif // _TEXTURE_HH_
 
+/** vim: set ts=4 sw=4 tw=80: *************************************************/
+
This page took 0.018659 seconds and 4 git commands to generate.