Virtual Method
HsFrontendcreate_software_context
Declaration [src]
HsSoftwareContext*
create_software_context (
HsFrontend* self,
guint width,
guint height,
HsPixelFormat format
)
Description [src]
Creates a software rendering context.
The context will have a framebuffer with the size width × height, with the
pixel format defined by format. The size and format cannot be changed later,
though the core is allowed to recreate the context.
If the core can use multiple resolutions and it’s not known at the creation
time, provide the maximum size, and then use a smaller area via
hs_software_context_set_area() and/or
hs_software_context_set_row_stride().
Parameters
width-
Type:
guintFramebuffer width.
height-
Type:
guintFramebuffer height.
format-
Type:
HsPixelFormatThe pixel format.
Return value
Type: HsSoftwareContext
A newly created software rendering context.
| The caller of the method takes ownership of the returned data, and is responsible for freeing it. |