1 #ifndef GONG_GRAPHICS_ARRAYTEXTURE_HPP_
2 #define GONG_GRAPHICS_ARRAYTEXTURE_HPP_
5 #include "TextureBase.hpp"
16 : public TextureBase<GL_TEXTURE_2D_ARRAY> {
22 ArrayTexture(ArrayTexture &&) noexcept;
23 ArrayTexture &operator =(ArrayTexture &&) noexcept;
25 ArrayTexture(const ArrayTexture &) = delete;
26 ArrayTexture &operator =(const ArrayTexture &) = delete;
29 GLsizei Width() const noexcept { return width; }
30 GLsizei Height() const noexcept { return height; }
31 GLsizei Depth() const noexcept { return depth; }
33 void Reserve(GLsizei w, GLsizei h, GLsizei d, const Format &) noexcept;
34 void Data(GLsizei l, const SDL_Surface &);
35 void Data(GLsizei l, const Format &, GLvoid *data) noexcept;
38 GLsizei width, height, depth;