API 参考
正在准备搜索索引…

RenderStates

值成员深复制;纹理和着色器引用保持同一性。

源码与继承
成员目录8

构造函数

属性

访问器

构造函数

属性

blendMode: BlendMode

颜色混合模式,默认 BlendAlpha。

源码与继承
coordinateType: CoordinateType

纹理坐标单位,默认 Pixels。

源码与继承
shader:
    | null
    | Readonly<
        Pick<
            Shader,
            | typeof graphicsNative
            | "getNativeHandle"
            | typeof shaderId
            | typeof shaderTextures,
        >,
    >

着色器引用,默认 null。

源码与继承
stencilMode: StencilMode

模板测试配置,默认始终通过且保留模板值。

源码与继承
texture:
    | null
    | Readonly<
        Pick<
            Texture,
            | "getSize"
            | typeof graphicsNative
            | typeof textureId
            | typeof textureOwner
            | "copyToImage"
            | "isSmooth"
            | "isRepeated"
            | "isSrgb"
            | "getNativeHandle",
        >,
    >

纹理引用,默认 null。

源码与继承
Default: ReadonlyRenderStates = ...

深度只读的默认绘制状态。

源码与继承

访问器

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0