1 #ifndef BLANK_GRAPHICS_ARRAYTEXTURE_HPP_
2 #define BLANK_GRAPHICS_ARRAYTEXTURE_HPP_
5 #include "TextureBase.hpp"
15 : public TextureBase<GL_TEXTURE_2D_ARRAY> {
21 ArrayTexture(ArrayTexture &&) noexcept;
22 ArrayTexture &operator =(ArrayTexture &&) noexcept;
24 ArrayTexture(const ArrayTexture &) = delete;
25 ArrayTexture &operator =(const ArrayTexture &) = delete;
28 GLsizei Width() const noexcept { return width; }
29 GLsizei Height() const noexcept { return height; }
30 GLsizei Depth() const noexcept { return depth; }
32 void Reserve(GLsizei w, GLsizei h, GLsizei d, const Format &) noexcept;
33 void Data(GLsizei l, const SDL_Surface &);
34 void Data(GLsizei l, const Format &, GLvoid *data) noexcept;
37 GLsizei width, height, depth;