Home Reference Source

Function

Static Public Summary
public
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

rgbToHex(r: *, g: *, b: *): string

public

setContext(context: *)

public

subdivide(data: *): *

public

unflatten(arr: *, amount: *): *

Static Public

public GL_LINES() source

import {GL_LINES} from 'engine/src/session.js'

public GL_POINTS() source

import {GL_POINTS} from 'engine/src/session.js'

public GL_TRIANGLES() source

import {GL_TRIANGLES} from 'engine/src/session.js'

public ashima(): string source

Return:

string

public clamp(value: *, min: *, max: *): * source

import {clamp} from 'engine/src/utils/math.js'

Params:

NameTypeAttributeDescription
value *
min *
max *

Return:

*

public componentToHex(c: *): * source

import {componentToHex} from 'engine/src/utils/color.js'

Params:

NameTypeAttributeDescription
c *

Return:

*

public convert(hex: *): * source

import {convert} from 'engine/src/utils/color.js'

Params:

NameTypeAttributeDescription
hex *

Return:

*

public createProgram(gl: *, vertex: *, fragment: *): * source

import {createProgram} from 'engine/src/renderer/helpers/program.js'

Params:

NameTypeAttributeDescription
gl *
vertex *
fragment *

Return:

*

public flatten(arr: *): * source

import {flatten} from 'engine/src/utils/geometry.js'

Params:

NameTypeAttributeDescription
arr *

Return:

*

public generateVertexNormals(positions: *, indices: *): * source

import {generateVertexNormals} from 'engine/src/utils/geometry.js'

Params:

NameTypeAttributeDescription
positions *
indices *

Return:

*

public getContext(): * source

import {getContext} from 'engine/src/session.js'

Return:

*

public hexIntToRgb(hex: *): * source

import {hexIntToRgb} from 'engine/src/utils/color.js'

Params:

NameTypeAttributeDescription
hex *

Return:

*

public hexStringToRgb(hex: *): * source

import {hexStringToRgb} from 'engine/src/utils/color.js'

Params:

NameTypeAttributeDescription
hex *

Return:

*

public isPowerOf2(value: *): * source

import {isPowerOf2} from 'engine/src/utils/math.js'

Params:

NameTypeAttributeDescription
value *

Return:

*

public mergeVertices(data: *): {"positions": *, "indices": *, "normals": *} source

import {mergeVertices} from 'engine/src/utils/geometry.js'

Params:

NameTypeAttributeDescription
data *

Return:

{"positions": *, "indices": *, "normals": *}

public randomRange(min: *, max: *): * source

import {randomRange} from 'engine/src/utils/math.js'

Params:

NameTypeAttributeDescription
min *
max *

Return:

*

public rgbToHex(r: *, g: *, b: *): string source

import {rgbToHex} from 'engine/src/utils/color.js'

Params:

NameTypeAttributeDescription
r *
g *
b *

Return:

string

public setContext(context: *) source

import {setContext} from 'engine/src/session.js'

Params:

NameTypeAttributeDescription
context *

public subdivide(data: *): * source

import {subdivide} from 'engine/src/utils/geometry.js'

Params:

NameTypeAttributeDescription
data *

Return:

*

public unflatten(arr: *, amount: *): * source

import {unflatten} from 'engine/src/utils/geometry.js'

Params:

NameTypeAttributeDescription
arr *
amount *

Return:

*