void unbind(GLenum target=GL_TEXTURE_2D)
ErrCode uploadImage(int width, int height, void *data, GLenum type=GL_UNSIGNED_BYTE, int internalFormat=GL_RGBA, GLenum format=GL_RGBA, std::function< void()> preParam=nullptr, std::function< void()> postParam=nullptr)
void bind(GLenum target=GL_TEXTURE_2D)
static Texture * create()
ErrCode allocateImage(int width, int height, GLenum type, int internalFormat, int format, std::function< void()> preParam=nullptr, std::function< void()> postParam=nullptr)