sfml.js
    Preparing search index...

    Class RenderStates

    Value members copy deeply; texture and shader references retain identity.

    Index

    Constructors

    Properties

    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 = ...

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

    Accessors