ResizeDesc
extern (C)
struct ResizeDesc {
}
- cliprect
Rect cliprect;
Undocumented in source.
- height
int height;
Undocumented in source.
- prescale
int prescale;
Undocumented in source.
- width
int width;
Undocumented in source.
sokol framebuffer
enumsfunctionsmanifest constantsstructs
sfb_resize_desc
Parameters for sfb_resize(). Needs to be called before sfb_update() in a frame if with potentially new framebuffer size parameters or clipping rectangle. Note that the sfb_resize() function can be called even when no resizing needs to happen, in that case the function will be a silent no-op and return false. When the function returns true this means that internal image objects had been recreated and need to be repopulated again via sfb_update()
Resizing is slightly cheaper than destroying and creating the frambuffer because only image objects needs to be re-created, but no pipeline objects.