]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texture2d.h
Use ARB_direct_state_access to avoid some bind calls
[libs/gl.git] / source / texture2d.h
index 92dafc7142e31b980493cc20013725f73d29f3c3..9647ad3ed55c688a86c156dd11e3daacba687b9d 100644 (file)
@@ -3,7 +3,6 @@
 
 #include <string>
 #include <msp/graphics/image.h>
-#include "resource.h"
 #include "texture.h"
 
 namespace Msp {
@@ -76,7 +75,8 @@ public:
        unsigned get_height() const { return height; }
 
 private:
-       void get_level_size(unsigned, unsigned &, unsigned &);
+       unsigned get_n_levels() const;
+       void get_level_size(unsigned, unsigned &, unsigned &) const;
 
 public:
        virtual Resource::AsyncLoader *load(IO::Seekable &, const Resources * = 0);