Add preserveDrawingBuffer context attribute.

This commit is contained in:
player-03
2024-05-31 21:43:37 -04:00
committed by GitHub
parent 5bcf8fcf8e
commit f23ecb6c3f

View File

@@ -32,6 +32,13 @@ typedef RenderContextAttributes =
**/
@:optional var hardware:Bool;
#if html5
/**
Whether to preserve the `HTMLCanvas`'s image data after rendering
**/
@:optional var preserveDrawingBuffer:Bool;
#end
/**
Whether a stencil buffer is enabled
**/