Interface: GlOptions
utils.GlOptions
Table of contents
Properties
- alpha
- antialias
- depth
- desynchronized
- stencil
- failIfMajorPerformanceCaveat
- premultipliedAlpha
- preserveDrawingBuffer
- powerPreference
Properties
alpha
• alpha: boolean
指定画布是否包含alpha缓冲区
Defined in
antialias
• antialias: boolean
指定是否开启抗锯齿。
Defined in
depth
• depth: boolean
指定是否开启深度检测。
Defined in
desynchronized
• desynchronized: boolean
表示绘图缓冲区的深度缓冲区至少为16位。
Defined in
stencil
• stencil: boolean
指定是否开启模板缓冲区。
Defined in
failIfMajorPerformanceCaveat
• failIfMajorPerformanceCaveat: boolean
指定如果系统性能较低,是否创建上下文。
Defined in
premultipliedAlpha
• premultipliedAlpha: boolean
指定是否开启预乘alpha。
Defined in
preserveDrawingBuffer
• preserveDrawingBuffer: boolean
是否开启绘制缓冲区。
Defined in
powerPreference
• powerPreference: WebGLPowerPreference
指定GPU的性能配置。