Skip to main content

Interface: GlOptions

utils.GlOptions

Table of contents​

Properties​

Properties​

alpha​

• alpha: boolean

指定画布是否包含alpha缓冲区

Defined in​

src/utils/gl.ts:43


antialias​

• antialias: boolean

指定是否开启抗锯齿。

Defined in​

src/utils/gl.ts:47


depth​

• depth: boolean

指定是否开启深度检测。

Defined in​

src/utils/gl.ts:51


desynchronized​

• desynchronized: boolean

表示绘图缓冲区的深度缓冲区至少为16位。

Defined in​

src/utils/gl.ts:55


stencil​

• stencil: boolean

指定是否开启模板缓冲区。

Defined in​

src/utils/gl.ts:59


failIfMajorPerformanceCaveat​

• failIfMajorPerformanceCaveat: boolean

指定如果系统性能较低,是否创建上下文。

Defined in​

src/utils/gl.ts:63


premultipliedAlpha​

• premultipliedAlpha: boolean

指定是否开启预乘alpha。

Defined in​

src/utils/gl.ts:67


preserveDrawingBuffer​

• preserveDrawingBuffer: boolean

是否开启绘制缓冲区。

Defined in​

src/utils/gl.ts:71


powerPreference​

• powerPreference: WebGLPowerPreference

指定GPU的性能配置。

Defined in​

src/utils/gl.ts:75