BaseFramebuffer
Description:
[ CCode ( has_construct_function = false ) ]
public BaseFramebuffer (uint8[] buffer, uint16 width, uint16 height, int rowstride, PixelFormat localFormat, PixelFormat remoteFormat)
public BaseFramebuffer (uint8[] buffer, uint16 width, uint16 height, int rowstride, PixelFormat localFormat, PixelFormat remoteFormat)
Allocate a new general purpose framebuffer object storing screen updates in buffer
.
buffer
must be height
* rowstride
bytes in size. The returned object will store a pointer to
buffer
, so it should not be free'd for as long as the framebuffer object exists
Parameters:
buffer |
the buffer representing the screen |
width |
the width of the screen |
height |
the height of the screen |
rowstride |
the number of bytes per line in |
localFormat |
the format for data stored in |
remoteFormat |
the format for data before storage in |
Returns:
the new framebuffer |