1 #ifndef BLANK_GRAPHICS_TEXTURE_HPP_
2 #define BLANK_GRAPHICS_TEXTURE_HPP_
4 #include "TextureBase.hpp"
16 : public TextureBase<GL_TEXTURE_2D> {
22 Texture(Texture &&) noexcept;
23 Texture &operator =(Texture &&) noexcept;
25 Texture(const Texture &) = delete;
26 Texture &operator =(const Texture &) = delete;
29 GLsizei Width() const noexcept { return width; }
30 GLsizei Height() const noexcept { return height; }
32 void Data(const SDL_Surface &, bool pad2 = true) noexcept;
33 void Data(GLsizei w, GLsizei h, const Format &, GLvoid *data) noexcept;
35 static void UnpackAlignment(GLint) noexcept;
36 static int UnpackAlignmentFromPitch(int) noexcept;
37 static void UnpackRowLength(GLint) noexcept;
40 GLsizei width, height;