X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FArrayTexture.hpp;h=3adb44e6461422bc598165ea7b18ba5bfaf045d5;hb=3185bad87c06739e4ec19b456c7158437ba9621f;hp=93b560e3ad2b4bd852e81331563771749a83d16e;hpb=7bb75960dbf9bfdee9ac865384aca81791b3da5c;p=blank.git diff --git a/src/graphics/ArrayTexture.hpp b/src/graphics/ArrayTexture.hpp index 93b560e..3adb44e 100644 --- a/src/graphics/ArrayTexture.hpp +++ b/src/graphics/ArrayTexture.hpp @@ -2,6 +2,7 @@ #define BLANK_GRAPHICS_ARRAYTEXTURE_HPP_ #include "Format.hpp" +#include "TextureBase.hpp" #include @@ -10,7 +11,8 @@ struct SDL_Surface; namespace blank { -class ArrayTexture { +class ArrayTexture +: public TextureBase { public: ArrayTexture(); @@ -27,19 +29,11 @@ public: GLsizei Height() const noexcept { return height; } GLsizei Depth() const noexcept { return depth; } - void Bind() noexcept; - void Reserve(GLsizei w, GLsizei h, GLsizei d, const Format &) noexcept; void Data(GLsizei l, const SDL_Surface &); void Data(GLsizei l, const Format &, GLvoid *data) noexcept; - void FilterNearest() noexcept; - void FilterLinear() noexcept; - void FilterTrilinear() noexcept; - private: - GLuint handle; - GLsizei width, height, depth; Format format;