gltexture1darray.h File Reference

Go to the documentation of this file. Source: include/ffw/graphics/gltexture1darray.h

/* This file is part of FineFramework project */
#ifndef FFW_GRAPHICS_TEXTURE_1D_ARRAY
#define FFW_GRAPHICS_TEXTURE_1D_ARRAY

#include "gltexture.h"

namespace ffw {
    class FFW_API GLTexture1DArray: public GLTexture {
    public:
        GLTexture1DArray();
        GLTexture1DArray(const GLTexture1DArray& other) = delete;
        GLTexture1DArray(GLTexture1DArray&& other) NOEXCEPT;
        virtual ~GLTexture1DArray() = default;
        GLTexture1DArray(GLsizei width, GLsizei layers, GLenum internalformat, GLenum format,
            GLenum pixelformat, const GLvoid* pixels = nullptr);
        void resize(GLsizei width, GLsizei layers, const GLvoid* pixels = nullptr);
        void setPixels(GLint level, GLint xoffset, GLint loffset,
            GLsizei width, const GLvoid* pixels);
        void setPixels(GLint level, const GLvoid* pixels);
        void getPixels(GLvoid* pixels) const;
        GLTexture1DArray& operator = (const GLTexture1DArray& other) = delete;
        GLTexture1DArray& operator = (GLTexture1DArray&& other) NOEXCEPT;
    };
};

inline void swap(ffw::GLTexture1DArray& first, ffw::GLTexture1DArray& second) NOEXCEPT {
    first.swap(second);
}
#endif