UNPKG

@theatrejs/theatrejs

Version:

🎮 A JavaScript 2D Game Engine focused on creating pixel art games.

48 lines (41 loc) • 636 B
/** * @module CONTEXT_TYPE */ /** * The '2d' rendering context. * @type {'2d'} * @constant * * @memberof module:CONTEXT_TYPE */ const CANVAS_2D = '2d'; /** * The 'webgl' rendering context. * @type {'webgl'} * @constant * * @memberof module:CONTEXT_TYPE */ const WEBGL1 = 'webgl'; /** * The 'webgl2' rendering context. * @type {'webgl2'} * @constant * * @memberof module:CONTEXT_TYPE */ const WEBGL2 = 'webgl2'; /** * The 'webgpu' rendering context. * @type {'webgpu'} * @constant * * @memberof module:CONTEXT_TYPE */ const WEBGPU = 'webgpu'; export { CANVAS_2D, WEBGL1, WEBGL2, WEBGPU };