X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fcore%2Ftexture.h;h=8db5dad83e0a90e6aa1bcde5a641f487a5e88355;hb=260ecf71f02d4b3397e4f6c80d96a7c4ba473185;hp=ff56e85cb233d97ff5b822c5360255b7c9e2a8bc;hpb=a7948dfc4192efbbf2b5ca9258fd7e72b971f8ea;p=libs%2Fgl.git diff --git a/source/core/texture.h b/source/core/texture.h index ff56e85c..8db5dad8 100644 --- a/source/core/texture.h +++ b/source/core/texture.h @@ -53,6 +53,7 @@ protected: void generate_mipmap(bool); void image_data(const std::string &); void mipmap_levels(unsigned); + void raw_data(const std::string &); }; public: @@ -91,6 +92,11 @@ public: using TextureBackend::generate_mipmap; + /** Replaces contents of an entire mipmap level. Allocated storage must + exist. The image data is interpreted according to the storage format and + must have size matching the selected mipmap level. */ + virtual void image(unsigned level, const void *) = 0; + /** Loads an image into the texture from a file. */ virtual void load_image(const std::string &, unsigned = 0);