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.

50 lines 1.7 kB
/* eslint-disable @typescript-eslint/naming-convention */ import { Engine } from "./engine.js"; import { ThinNativeEngine } from "./thinNativeEngine.js"; import "./AbstractEngine/abstractEngine.loadFile.js"; import "./AbstractEngine/abstractEngine.textureLoaders.js"; import "./Native/Extensions/nativeEngine.cubeTexture.js"; /** @internal */ export class NativeEngine extends Engine { /** * @internal * Will be overriden by the Thin Native engine implementation * No code should be placed here */ _initializeNativeEngine(_adaptToDeviceRatio) { } /** * @internal */ constructor(options = {}) { super(null, false, undefined, options.adaptToDeviceRatio); this._initializeNativeEngine(options.adaptToDeviceRatio ?? false); } /** * @internal */ wrapWebGLTexture() { throw new Error("wrapWebGLTexture is not supported, use wrapNativeTexture instead."); } /** * @internal */ _uploadImageToTexture(texture, image, _faceIndex = 0, _lod = 0) { throw new Error("_uploadArrayBufferViewToTexture not implemented."); } } /** * @internal * Applies the functionality of one or more base constructors to a derived constructor. */ function applyMixins(derivedCtor, constructors) { constructors.forEach((baseCtor) => { Object.getOwnPropertyNames(baseCtor.prototype).forEach((name) => { if (name !== "constructor") { derivedCtor.prototype[name] = baseCtor.prototype[name]; } }); }); } // Apply the ThinNativeEngine mixins to the NativeEngine. applyMixins(NativeEngine, [ThinNativeEngine]); //# sourceMappingURL=nativeEngine.js.map