UNPKG

857 BJavaScriptView Raw
1/** @module RenderConstants */
2
3/**
4 * Various constants meant for use throughout the renderer.
5 * @enum
6 */
7module.exports = {
8 /**
9 * The ID value to use for "no item" or when an object has been disposed.
10 * @const {int}
11 */
12 ID_NONE: -1,
13
14 /**
15 * Optimize for fewer than this number of Drawables sharing the same Skin.
16 * Going above this may cause middleware warnings or a performance penalty but should otherwise behave correctly.
17 * @const {int}
18 */
19 SKIN_SHARE_SOFT_LIMIT: 301,
20
21 /**
22 * @enum {string}
23 */
24 Events: {
25 /**
26 * NativeSizeChanged event
27 *
28 * @event RenderWebGL#event:NativeSizeChanged
29 * @type {object}
30 * @property {Array<int>} newSize - the new size of the renderer
31 */
32 NativeSizeChanged: 'NativeSizeChanged'
33 }
34};