]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/texture2d.h
Refactor get_level_size in various texture classes
[libs/gl.git] / source / core / texture2d.h
index 7553b6b703c944a2144e989bf605d41b9ae2295c..877555c0f5ba43d4cdefb5a78af34225cc2e4756 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <string>
 #include <msp/graphics/image.h>
+#include <msp/linal/vector.h>
 #include "texture.h"
 
 namespace Msp {
@@ -86,7 +87,7 @@ public:
 
 private:
        unsigned get_n_levels() const;
-       void get_level_size(unsigned, unsigned &, unsigned &) const;
+       LinAl::Vector<unsigned, 2> get_level_size(unsigned) const;
 
 public:
        virtual Resource::AsyncLoader *load(IO::Seekable &, const Resources * = 0);