Function
| Static Public Summary | ||
| public |
GL_LINES() |
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
clamp(value: *, min: *, max: *): * |
|
| public |
componentToHex(c: *): * |
|
| public |
convert(hex: *): * |
|
| public |
createProgram(gl: *, vertex: *, fragment: *): * |
|
| public |
flatten(arr: *): * |
|
| public |
generateVertexNormals(positions: *, indices: *): * |
|
| public |
getContext(): * |
|
| public |
hexIntToRgb(hex: *): * |
|
| public |
hexStringToRgb(hex: *): * |
|
| public |
isPowerOf2(value: *): * |
|
| public |
mergeVertices(data: *): {"positions": *, "indices": *, "normals": *} |
|
| public |
randomRange(min: *, max: *): * |
|
| public |
|
|
| public |
setContext(context: *) |
|
| public |
subdivide(data: *): * |
|
| public |
unflatten(arr: *, amount: *): * |
|
Static Public
public clamp(value: *, min: *, max: *): * source
import {clamp} from 'engine/src/utils/math.js'Params:
| Name | Type | Attribute | Description |
| value | * | ||
| min | * | ||
| max | * |
Return:
| * |
public componentToHex(c: *): * source
import {componentToHex} from 'engine/src/utils/color.js'Params:
| Name | Type | Attribute | Description |
| c | * |
Return:
| * |
public convert(hex: *): * source
import {convert} from 'engine/src/utils/color.js'Params:
| Name | Type | Attribute | Description |
| hex | * |
Return:
| * |
public createProgram(gl: *, vertex: *, fragment: *): * source
import {createProgram} from 'engine/src/renderer/helpers/program.js'Params:
| Name | Type | Attribute | Description |
| gl | * | ||
| vertex | * | ||
| fragment | * |
Return:
| * |
public flatten(arr: *): * source
import {flatten} from 'engine/src/utils/geometry.js'Params:
| Name | Type | Attribute | Description |
| arr | * |
Return:
| * |
public generateVertexNormals(positions: *, indices: *): * source
import {generateVertexNormals} from 'engine/src/utils/geometry.js'Params:
| Name | Type | Attribute | Description |
| positions | * | ||
| indices | * |
Return:
| * |
public hexIntToRgb(hex: *): * source
import {hexIntToRgb} from 'engine/src/utils/color.js'Params:
| Name | Type | Attribute | Description |
| hex | * |
Return:
| * |
public hexStringToRgb(hex: *): * source
import {hexStringToRgb} from 'engine/src/utils/color.js'Params:
| Name | Type | Attribute | Description |
| hex | * |
Return:
| * |
public isPowerOf2(value: *): * source
import {isPowerOf2} from 'engine/src/utils/math.js'Params:
| Name | Type | Attribute | Description |
| value | * |
Return:
| * |
public mergeVertices(data: *): {"positions": *, "indices": *, "normals": *} source
import {mergeVertices} from 'engine/src/utils/geometry.js'Params:
| Name | Type | Attribute | Description |
| data | * |
Return:
| {"positions": *, "indices": *, "normals": *} |
public randomRange(min: *, max: *): * source
import {randomRange} from 'engine/src/utils/math.js'Params:
| Name | Type | Attribute | Description |
| min | * | ||
| max | * |
Return:
| * |
public rgbToHex(r: *, g: *, b: *): string source
import {rgbToHex} from 'engine/src/utils/color.js'Params:
| Name | Type | Attribute | Description |
| r | * | ||
| g | * | ||
| b | * |
public setContext(context: *) source
import {setContext} from 'engine/src/session.js'Params:
| Name | Type | Attribute | Description |
| context | * |
public subdivide(data: *): * source
import {subdivide} from 'engine/src/utils/geometry.js'Params:
| Name | Type | Attribute | Description |
| data | * |
Return:
| * |
public unflatten(arr: *, amount: *): * source
import {unflatten} from 'engine/src/utils/geometry.js'Params:
| Name | Type | Attribute | Description |
| arr | * | ||
| amount | * |
Return:
| * |
