UNPKG

@babylonjs/core

Version:

Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.

39 lines (38 loc) 1.29 kB
import { type InternalTexture } from "../Materials/Textures/internalTexture.js"; import { Engine } from "./engine.js"; import { type ThinNativeEngineOptions, ThinNativeEngine } from "./thinNativeEngine.js"; import "./AbstractEngine/abstractEngine.loadFile.js"; import "./AbstractEngine/abstractEngine.textureLoaders.js"; import "./Native/Extensions/nativeEngine.cubeTexture.js"; /** * Options to create the Native engine */ export interface NativeEngineOptions extends ThinNativeEngineOptions { } /** @internal */ export declare class NativeEngine extends Engine { /** * @internal * Will be overriden by the Thin Native engine implementation * No code should be placed here */ protected _initializeNativeEngine(_adaptToDeviceRatio: boolean): void; /** * @internal */ constructor(options?: NativeEngineOptions); /** * @internal */ wrapWebGLTexture(): InternalTexture; /** * @internal */ _uploadImageToTexture(texture: InternalTexture, image: HTMLImageElement, _faceIndex?: number, _lod?: number): void; } /** * @internal * Augments the NativeEngine type to include ThinNativeEngine methods and preventing dupplicate TS errors */ export interface NativeEngine extends Omit<ThinNativeEngine, keyof Engine> { }