]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texturecube.h
Support linear to sRGB conversion when loading materials and textures
[libs/gl.git] / source / texturecube.h
index e775be1d31ec0ceb26d2fd47ee75597803caf969..077b58ac59f48d6e1bc688564b9787a5086d5b28 100644 (file)
@@ -40,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);
@@ -77,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: