gltexture1d.h File Reference

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

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

#include "gltexture.h"

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

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