X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FTexture.hpp;fp=src%2Fgraphics%2FTexture.hpp;h=f8388080675986aeec6c0e15b61f5b0a920b9270;hb=be3a81656b8493010d2329fa00da617e24293438;hp=9e24a8dc873882e85904acb07928b2eb7f6b3313;hpb=1709d12eb27ecf7626d724a3fc14096a93f3cb4c;p=blank.git diff --git a/src/graphics/Texture.hpp b/src/graphics/Texture.hpp index 9e24a8d..f838808 100644 --- a/src/graphics/Texture.hpp +++ b/src/graphics/Texture.hpp @@ -1,6 +1,8 @@ #ifndef BLANK_GRAPHICS_TEXTURE_HPP_ #define BLANK_GRAPHICS_TEXTURE_HPP_ +#include "TextureBase.hpp" + #include struct SDL_Surface; @@ -10,7 +12,8 @@ namespace blank { struct Format; -class Texture { +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; };