]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texturecube.h
Make the viewer capable of viewing scenes
[libs/gl.git] / source / texturecube.h
index 8d87c410d2f91e98032bc1ce47be5cad8a804f44..077b58ac59f48d6e1bc688564b9787a5086d5b28 100644 (file)
@@ -6,6 +6,7 @@
 #include "pixelformat.h"
 #include "texture.h"
 #include "vector.h"
+#include <msp/gl/extensions/arb_texture_cube_map.h>
 
 namespace Msp {
 namespace GL {
@@ -39,7 +40,10 @@ public:
        {
        public:
                Loader(TextureCube &);
+               Loader(TextureCube &, Collection &);
        private:
+               void init();
+
                void image_data(TextureCubeFace, const std::string &);
                void raw_data(TextureCubeFace, const std::string &);
                void storage(PixelFormat, unsigned);
@@ -76,7 +80,7 @@ public:
                int x, int y, unsigned w, unsigned h,
                PixelFormat fmt, DataType type, const void *data);
 
-       void image(TextureCubeFace, const Graphics::Image &);
+       void image(TextureCubeFace, const Graphics::Image &, bool = false);
 
        unsigned get_size() const { return size; }
 private: