API

Interface IHtmlElementTextureOptions

Defines the options related to the creation of an HtmlElementTexture

interface IHtmlElementTextureOptions {
    engine: Nullable<AbstractEngine>;
    format?: number;
    generateMipMaps?: boolean;
    samplingMode?: number;
    scene: Nullable<Scene>;
}
Index

Defines the engine instance to use the texture with. It is not mandatory if you define a scene.

format?: number

Defines the associated texture format.

generateMipMaps?: boolean

Defines whether mip maps should be created or not.

samplingMode?: number

Defines the sampling mode of the texture.

scene: Nullable<Scene>

Defines the scene the texture belongs to. It is not mandatory if you define an engine.