engineFactory.d.ts 594 B

12345678910111213
  1. import type { AbstractEngine } from "./abstractEngine";
  2. /**
  3. * Helper class to create the best engine depending on the current hardware
  4. */
  5. export declare class EngineFactory {
  6. /**
  7. * Creates an engine based on the capabilities of the underlying hardware
  8. * @param canvas Defines the canvas to use to display the result
  9. * @param options Defines the options passed to the engine to create the context dependencies
  10. * @returns a promise that resolves with the created engine
  11. */
  12. static CreateAsync(canvas: HTMLCanvasElement, options: any): Promise<AbstractEngine>;
  13. }