API reference
Preparing search index…

RenderStates

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

Source & inheritance
Member directory8

Constructors

Properties

Accessors

Constructors

Properties

blendMode: BlendMode

Color blending mode; defaults to BlendAlpha.

Source & inheritance
coordinateType: CoordinateType

Texture coordinate units; defaults to Pixels.

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

Shader reference; defaults to null.

Source & inheritance
stencilMode: StencilMode

Stencil test configuration; by default always passes and preserves stencil values.

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

Texture reference; defaults to null.

Source & inheritance
Default: ReadonlyRenderStates = ...

Deeply read-only default draw states.

Source & inheritance

Accessors

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