Texture Transfer class.
Definition: transfer_texture.h:55
TransferTexture(GraphicContext &gc, int width, int height, PixelBufferDirection direction=data_to_gpu, TextureFormat texture_format=tf_rgba8, const void *data=nullptr, BufferUsage usage=usage_stream_draw)
Constructs a GPU Transfer Buffer.
Interface to drawing graphics.
Definition: graphic_context.h:258
TransferTexture(GraphicContext &gc, const PixelBuffer &pbuff, PixelBufferDirection direction=data_to_gpu, BufferUsage usage=usage_stream_draw)
Constructs a GPU Transfer Buffer from an existing pixelbuffer.