mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-14 03:20:22 +00:00
[common] framebuffer: allow custom framebuffer write implementations
This is helpful for only copying damaged areas.
This commit is contained in:
@@ -61,4 +61,16 @@ void framebuffer_prepare(FrameBuffer * frame);
|
||||
*/
|
||||
bool framebuffer_write(FrameBuffer * frame, const void * src, size_t size);
|
||||
|
||||
/**
|
||||
* Gets the underlying data buffer of the framebuffer.
|
||||
* For custom write routines only.
|
||||
*/
|
||||
uint8_t * framebuffer_get_data(FrameBuffer * frame);
|
||||
|
||||
/**
|
||||
* Sets the write pointer of the framebuffer.
|
||||
* For custom write routines only.
|
||||
*/
|
||||
void framebuffer_set_write_ptr(FrameBuffer * frame, size_t size);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user