]> git.localhorst.tv Git - blank.git/blobdiff - src/graphics/Texture.hpp
cube map textures
[blank.git] / src / graphics / Texture.hpp
index 9e24a8dc873882e85904acb07928b2eb7f6b3313..f8388080675986aeec6c0e15b61f5b0a920b9270 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef BLANK_GRAPHICS_TEXTURE_HPP_
 #define BLANK_GRAPHICS_TEXTURE_HPP_
 
+#include "TextureBase.hpp"
+
 #include <GL/glew.h>
 
 struct SDL_Surface;
@@ -10,7 +12,8 @@ namespace blank {
 
 struct Format;
 
-class Texture {
+class Texture
+: public TextureBase<GL_TEXTURE_2D> {
 
 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;
 
 };