1 #ifndef BLANK_GRAPHICS_TEXTURE_HPP_
2 #define BLANK_GRAPHICS_TEXTURE_HPP_
19 Texture(Texture &&) noexcept;
20 Texture &operator =(Texture &&) noexcept;
22 Texture(const Texture &) = delete;
23 Texture &operator =(const Texture &) = delete;
26 GLsizei Width() const noexcept { return width; }
27 GLsizei Height() const noexcept { return height; }
31 void Data(const SDL_Surface &, bool pad2 = true) noexcept;
32 void Data(GLsizei w, GLsizei h, const Format &, GLvoid *data) noexcept;
34 void FilterNearest() noexcept;
35 void FilterLinear() noexcept;
36 void FilterTrilinear() noexcept;
38 static void UnpackAlignment(GLint) noexcept;
39 static int UnpackAlignmentFromPitch(int) noexcept;
40 static void UnpackRowLength(GLint) noexcept;
45 GLsizei width, height;