sfml.js
    Preparing search index...

    Interface ReadonlyRenderStates

    只读绘制状态;纹理和着色器保留资源引用。

    interface ReadonlyRenderStates {
        blendMode: Readonly<BlendMode>;
        coordinateType: CoordinateType;
        shader:
            | null
            | Readonly<
                Pick<
                    Shader,
                    | typeof graphicsNative
                    | "getNativeHandle"
                    | typeof shaderId
                    | typeof shaderTextures,
                >,
            >;
        stencilMode: Readonly<
            Omit<StencilMode, "stencilReference" | "stencilMask">,
        > & {
            stencilMask: Readonly<StencilValue>;
            stencilReference: Readonly<StencilValue>;
        };
        texture: | null
        | Readonly<
            Pick<
                Texture,
                | "getSize"
                | typeof graphicsNative
                | typeof textureId
                | typeof textureOwner
                | "copyToImage"
                | "isSmooth"
                | "isRepeated"
                | "isSrgb"
                | "getNativeHandle",
            >,
        >;
        transform: ReadonlyValue<Transform>;
    }
    Index

    Properties

    blendMode: Readonly<BlendMode>

    颜色混合模式。

    coordinateType: CoordinateType

    纹理坐标单位。

    shader:
        | null
        | Readonly<
            Pick<
                Shader,
                | typeof graphicsNative
                | "getNativeHandle"
                | typeof shaderId
                | typeof shaderTextures,
            >,
        >

    着色器资源引用,null 使用默认管线。

    stencilMode: Readonly<Omit<StencilMode, "stencilReference" | "stencilMask">> & {
        stencilMask: Readonly<StencilValue>;
        stencilReference: Readonly<StencilValue>;
    }

    模板测试配置。

    Type declaration

    • ReadonlystencilMask: Readonly<StencilValue>

      只读模板比较掩码。

    • ReadonlystencilReference: Readonly<StencilValue>

      只读模板参考值。

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

    纹理资源引用,null 表示不用纹理。

    绘制前应用的变换。