X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftexturecube.h;h=62f1189aa541426ff86d0cdcb5593604155a2dea;hb=6f8c0c6c088be92804cb413c0234bfb817ef2d8d;hp=9adf06978b4d396df7a906bcd881778d9f707ee4;hpb=d2efbd8a32efa2a3ee8542efc846277af19d63e0;p=libs%2Fgl.git diff --git a/source/texturecube.h b/source/texturecube.h index 9adf0697..62f1189a 100644 --- a/source/texturecube.h +++ b/source/texturecube.h @@ -1,10 +1,10 @@ #ifndef MSP_GL_TEXTURECUBE_H_ #define MSP_GL_TEXTURECUBE_H_ +#include #include #include "texture.h" #include "vector.h" -#include namespace Msp { namespace GL { @@ -42,6 +42,7 @@ public: private: void init(); + void external_image(TextureCubeFace, const std::string &); void image_data(TextureCubeFace, const std::string &); void raw_data(TextureCubeFace, const std::string &); void storage(PixelFormat, unsigned); @@ -84,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