Additional options possible for a render context

Properties

@:optionalantialiasing:Null<Int>

Whether to enable anti-aliasing, 0 is disabled, 2 enables 2x2 anti-aliasing or 4 enables 4x4 anti-aliasing.

@:optionalbackground:Null<Int>

An optional background property to be provided to rendering, a value of null means no background color.

@:optionalcolorDepth:Null<Int>

The color depth of the rendering context in bits

@:optionaldepth:Null<Bool>

Whether a depth buffer is enabled

@:optionalhardware:Null<Bool>

Whether hardware acceleration is allowed

@:optionalstencil:Null<Bool>

Whether a stencil buffer is enabled

@:optionaltype:Null<RenderContextType>

The type of render context requested

@:optionalversion:Null<String>

@:optionalvsync:Null<Bool>

Whether vertical-sync (VSync) is enabled