API reference
Preparing search index…

CallbackTextureInterface

Rml::CallbackTextureInterface valid only during its generation callback.

Only these scoped methods may enter native code during generation. Runtime, DOM, resource operations and recursive rendering are rejected. Returning false or throwing releases any submitted texture and caches the failure.

Source & inheritance
Member directory4

Methods

Methods

  • Generate a texture from tightly packed premultiplied RGBA bytes.

    Parameters

    source
    Uint8Array

    Unshared width × height × 4 bytes; Buffer is accepted.

    dimensions

    Positive integer pixel dimensions.

    Returns

    boolean

    Native GenerateTexture result.

    Source & inheritance

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