Interface to drawing graphics.
Definition graphic_context.h:257
TransferTexture(GraphicContext &gc, const PixelBuffer &pbuff, PixelBufferDirection direction=PixelBufferDirection::data_to_gpu, BufferUsage usage=BufferUsage::stream_draw)
Constructs a GPU Transfer Buffer from an existing pixelbuffer.
TransferTexture()
Constructs a null instance.
~TransferTexture() override
TransferTexture(GraphicContext &gc, int width, int height, PixelBufferDirection direction=PixelBufferDirection::data_to_gpu, TextureFormat texture_format=TextureFormat::rgba8, const void *data=nullptr, BufferUsage usage=BufferUsage::stream_draw)
Constructs a GPU Transfer Buffer.
TransferTexture(std::unique_ptr< PixelBufferProvider > provider)
Constructs a GPU Transfer Buffer.