X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Ftexturecube.h;h=2f445919ba718ad97d3cda995fc4cc2aba25ce7a;hp=8bb5cf43131f101fb5089b7913d091a510ada681;hb=38712d8ecc57d043a2419ffbaeeb57f7a6586f14;hpb=24b24e2203c776aacd9744bb947f5cf47b03d328 diff --git a/source/core/texturecube.h b/source/core/texturecube.h index 8bb5cf43..2f445919 100644 --- a/source/core/texturecube.h +++ b/source/core/texturecube.h @@ -2,7 +2,7 @@ #define MSP_GL_TEXTURECUBE_H_ #include -#include "texture.h" +#include "texturecube_backend.h" #include "vector.h" namespace Msp { @@ -30,8 +30,10 @@ All faces of a cube map texture must be allocated for it to be usable. Requires OpenGL version 1.3. */ -class TextureCube: public Texture +class TextureCube: public TextureCubeBackend { + friend TextureCubeBackend; + public: class Loader: public Msp::DataFile::DerivedObjectLoader { @@ -49,15 +51,13 @@ public: }; private: - unsigned size; - unsigned levels; + unsigned size = 0; + unsigned levels = 0; static const Vector3 directions[6]; static const unsigned orientations[12]; public: - TextureCube(); - /** Defines storage structure for the texture. If lv is zero, the number of mipmap levels is automatically determined from storage dimensions. @@ -103,8 +103,6 @@ public: virtual void unload() { } }; -unsigned get_gl_cube_face(TextureCubeFace); - void operator>>(const LexicalConverter &, TextureCubeFace &); } // namespace GL