@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.
40 lines (39 loc) • 1.65 kB
TypeScript
import type { Nullable } from "../types.js";
import { AbstractEngine } from "./abstractEngine.js";
import type { AbstractEngineOptions } from "./abstractEngine.js";
/** @internal */
export declare function _CommonInit(commonEngine: AbstractEngine, canvas: HTMLCanvasElement, creationOptions: AbstractEngineOptions): void;
/** @internal */
export declare function _CommonDispose(commonEngine: AbstractEngine, canvas: Nullable<HTMLCanvasElement>): void;
/**
* Get Font size information
* @param font font name
* @returns an object containing ascent, height and descent
*/
export declare function GetFontOffset(font: string): {
ascent: number;
height: number;
descent: number;
};
/** @internal */
export declare function CreateImageBitmapFromSource(engine: AbstractEngine, imageSource: string, options?: ImageBitmapOptions): Promise<ImageBitmap>;
/** @internal */
export declare function ResizeImageBitmap(engine: AbstractEngine, image: HTMLImageElement | ImageBitmap, bufferWidth: number, bufferHeight: number): Uint8Array;
/**
* Ask the browser to promote the current element to fullscreen rendering mode
* @param element defines the DOM element to promote
*/
export declare function RequestFullscreen(element: HTMLElement): void;
/**
* Asks the browser to exit fullscreen mode
*/
export declare function ExitFullscreen(): void;
/**
* Ask the browser to promote the current element to pointerlock mode
* @param element defines the DOM element to promote
*/
export declare function RequestPointerlock(element: HTMLElement): void;
/**
* Asks the browser to exit pointerlock mode
*/
export declare function ExitPointerlock(): void;