X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftexturecube.h;h=fe343c7390630de1ad6fdc9a1f3a2cbc3ebfcdda;hb=b152e4f63170e8ccd6c9fb9397964c628fb6efeb;hp=8d87c410d2f91e98032bc1ce47be5cad8a804f44;hpb=804ad5d99c575b92e9d47421947e963a44f7a905;p=libs%2Fgl.git diff --git a/source/texturecube.h b/source/texturecube.h index 8d87c410..fe343c73 100644 --- a/source/texturecube.h +++ b/source/texturecube.h @@ -6,6 +6,7 @@ #include "pixelformat.h" #include "texture.h" #include "vector.h" +#include 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: @@ -98,6 +102,10 @@ public: /** Returns a vector pointing to the center a texel. */ Vector3 get_texel_direction(TextureCubeFace, unsigned, unsigned); + + virtual AsyncLoader *load(IO::Seekable &) { return 0; } + virtual UInt64 get_data_size() const; + virtual void unload() { } }; void operator>>(const LexicalConverter &, TextureCubeFace &);