-void OpenGLTexture2D::sub_image(unsigned level, int x, int y, unsigned wd, unsigned ht, const Buffer &buffer, unsigned offset)
-{
- glBindBuffer(GL_PIXEL_UNPACK_BUFFER, buffer.id);
- sub_image(level, x, y, wd, ht, reinterpret_cast<void *>(offset));
- glBindBuffer(GL_PIXEL_UNPACK_BUFFER, 0);
-}
-
-Resource::AsyncLoader *OpenGLTexture2D::load(IO::Seekable &io, const Resources *)
-{
- return new AsyncLoader(static_cast<Texture2D &>(*this), io);
-}
-