/** * Initialize the "video" system (create a canvas based on the given arguments, and the related renderer).
* @memberof video * @param {number} width - The width of the canvas viewport * @param {number} height - The height of the canvas viewport * @param {ApplicationSettings} [options] - optional parameters for the renderer * @returns {boolean} false if initialization failed (canvas not supported) * @deprecated since 18.3.0 — use {@link Application} constructor instead: * `const app = new Application(width, height, options)` * @see Application * @example * // using the new Application entry point (recommended) * const app = new Application(640, 480, { * parent : "screen", * scale : "auto", * scaleMethod : "fit" * }); * * // legacy usage (still supported) * me.video.init(640, 480, { * parent : "screen", * renderer : me.video.AUTO, * scale : "auto", * scaleMethod : "fit" * }); */ export function init(width: number, height: number, options?: ApplicationSettings): boolean; /** * Create and return a new Canvas element * @memberof video * @param {number} width - width * @param {number} height - height * @param {boolean} [returnOffscreenCanvas=false] - will return an OffscreenCanvas if supported * @returns {HTMLCanvasElement|OffscreenCanvas} a new Canvas element of the given size */ export function createCanvas(width: number, height: number, returnOffscreenCanvas?: boolean): HTMLCanvasElement | OffscreenCanvas; /** * return a reference to the parent DOM element holding the main canvas * @memberof video * @returns {HTMLElement} the HTML parent element * @deprecated since 18.3.0 — use {@link Application#getParentElement app.getParentElement()} instead. * @see Application#getParentElement */ export function getParent(): HTMLElement; /** * A reference to the active Canvas or WebGL renderer. * @memberof video * @type {CanvasRenderer|WebGLRenderer} * @deprecated since 18.3.0 — use {@link Application#renderer app.renderer} instead. * @see Application#renderer */ export let renderer: CanvasRenderer | WebGLRenderer; export { AUTO, CANVAS, WEBGL } from "../const"; //# sourceMappingURL=video.d.ts.map