playcanvas
Version:
PlayCanvas WebGL game engine
21 lines (19 loc) • 884 B
JavaScript
/**
* When resizing the window the size of the canvas will not change.
*/ const FILLMODE_NONE = 'NONE';
/**
* When resizing the window the size of the canvas will change to fill the window exactly.
*/ const FILLMODE_FILL_WINDOW = 'FILL_WINDOW';
/**
* When resizing the window the size of the canvas will change to fill the window as best it can,
* while maintaining the same aspect ratio.
*/ const FILLMODE_KEEP_ASPECT = 'KEEP_ASPECT';
/**
* When the canvas is resized the resolution of the canvas will change to match the size of the
* canvas.
*/ const RESOLUTION_AUTO = 'AUTO';
/**
* When the canvas is resized the resolution of the canvas will remain at the same value and the
* output will just be scaled to fit the canvas.
*/ const RESOLUTION_FIXED = 'FIXED';
export { FILLMODE_FILL_WINDOW, FILLMODE_KEEP_ASPECT, FILLMODE_NONE, RESOLUTION_AUTO, RESOLUTION_FIXED };