X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FTexture.hpp;h=f8388080675986aeec6c0e15b61f5b0a920b9270;hb=3185bad87c06739e4ec19b456c7158437ba9621f;hp=240e145bc306c96f4e828e7ffd1c5c75801dd1b0;hpb=282d731ea8f10342efa82012028de7043b3dd639;p=blank.git diff --git a/src/graphics/Texture.hpp b/src/graphics/Texture.hpp index 240e145..f838808 100644 --- a/src/graphics/Texture.hpp +++ b/src/graphics/Texture.hpp @@ -1,7 +1,7 @@ #ifndef BLANK_GRAPHICS_TEXTURE_HPP_ #define BLANK_GRAPHICS_TEXTURE_HPP_ -#include "Format.hpp" +#include "TextureBase.hpp" #include @@ -10,7 +10,10 @@ struct SDL_Surface; namespace blank { -class Texture { +struct Format; + +class Texture +: public TextureBase { public: Texture(); @@ -26,22 +29,14 @@ public: GLsizei Width() const noexcept { return width; } GLsizei Height() const noexcept { return height; } - void Bind() noexcept; - void Data(const SDL_Surface &, bool pad2 = true) noexcept; void Data(GLsizei w, GLsizei h, const Format &, GLvoid *data) noexcept; - void FilterNearest() noexcept; - void FilterLinear() noexcept; - void FilterTrilinear() noexcept; - static void UnpackAlignment(GLint) noexcept; static int UnpackAlignmentFromPitch(int) noexcept; static void UnpackRowLength(GLint) noexcept; private: - GLuint handle; - GLsizei width, height; };