]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texturecube.h
Prefer explicit mipmap generation with glGenerateMipmap
[libs/gl.git] / source / texturecube.h
index 7510a716a6be13dc6f884e4af41fe4d6b13ad143..62f1189aa541426ff86d0cdcb5593604155a2dea 100644 (file)
@@ -1,10 +1,10 @@
 #ifndef MSP_GL_TEXTURECUBE_H_
 #define MSP_GL_TEXTURECUBE_H_
 
+#include <msp/gl/extensions/arb_texture_cube_map.h>
 #include <msp/graphics/image.h>
 #include "texture.h"
 #include "vector.h"
-#include <msp/gl/extensions/arb_texture_cube_map.h>
 
 namespace Msp {
 namespace GL {
@@ -85,7 +85,8 @@ public:
 
        unsigned get_size() const { return size; }
 private:
-       unsigned get_level_size(unsigned);
+       unsigned get_n_levels() const;
+       unsigned get_level_size(unsigned) const;
 
 public:
        /** Translates indices into face constants.  Valid indices are between 0