Home Reference Source

Variable

Static Public Summary
public

ANIM: {"Key": *}

public

BLENDS: {"BLEND_NONE": *, "BLEND_NORMAL": number, "BLEND_ADD": number, "BLEND_SUB": number, "BLEND_MUL": number}

public

CG: {"GAPI_WEBGL": *, "GAPI_WEBGPU": number, "DEPTH_COMPARE_NEVER": *, "DEPTH_COMPARE_LESS": number, "DEPTH_COMPARE_EQUAL": number, "DEPTH_COMPARE_LESSEQUAL": number, "DEPTH_COMPARE_GREATER": number, "DEPTH_COMPARE_NOTEQUAL": number, "DEPTH_COMPARE_GREATEREQUAL": number, "DEPTH_COMPARE_ALWAYS": number, "CULL_NONE": *, "CULL_BACK": number, "CULL_FRONT": number, "CULL_BOTH": number, "Geometry": *, "BoundingBox": *, "FpsCounter": *, "CgCanvas": *}

public

CGL: {"Framebuffer": *, "Framebuffer2": *, "Geometry": *, "BoundingBox": *, "Marker": *, "WirePoint": *, "WireCube": *, "MatrixStack": *, "Mesh": *, "MESH": *, "ShaderLibMods": *, "Shader": *, "Uniform": *, "MESHES": *, "Context": *, "Texture": *, "TextureEffect": *, "isWindows": *, "getWheelSpeed": *, "getWheelDelta": *, "onLoadingAssetsFinished": *, "ProfileData": *, "UniColorShader": *, ...undefined: Object}

public

CGP: {"Context": *, "Shader": *, "Mesh": *, "Pipeline": *, "Texture": *}

public

CONSTANTS: {"MATH": *, "SHADER": *, "BLEND_MODES": *}

public

CONSTANTS: {"ANIM": *, "OP": *, "PORT": *, "PACO": *}

public

DEG2RAD: *

multiply to get radians from degree, e.g.

public

EMBED: {}

public

MESH: {}

public

MESHES: {}

public

RAD2DEG: *

to get degrees from radians, e.g.

public

ShaderLibMods: {"CGL.BLENDMODES": *, "CGL.BLENDMODES3": *, "CGL.LUMINANCE": *, "CGL.RANDOM_OLD": *, "CGL.RANDOM_LOW": *, "CGL.RANDOM_TEX": *}

public

UTILS: {}

public

WEBAUDIO: {}

public

base64Chars: string

public
public
public
public
public

isWindows(event: MouseEvent): Number: *

get normalized mouse wheel delta (including browser specific adjustment)

public
public
public

shortId: *

public

uuid: *

Static Public

public ANIM: {"Key": *} source

import {ANIM} from './core/anim.js'

public BLENDS: {"BLEND_NONE": *, "BLEND_NORMAL": number, "BLEND_ADD": number, "BLEND_SUB": number, "BLEND_MUL": number} source

import {BLENDS} from './core/cgl/cgl_state.js'

public CG: {"GAPI_WEBGL": *, "GAPI_WEBGPU": number, "DEPTH_COMPARE_NEVER": *, "DEPTH_COMPARE_LESS": number, "DEPTH_COMPARE_EQUAL": number, "DEPTH_COMPARE_LESSEQUAL": number, "DEPTH_COMPARE_GREATER": number, "DEPTH_COMPARE_NOTEQUAL": number, "DEPTH_COMPARE_GREATEREQUAL": number, "DEPTH_COMPARE_ALWAYS": number, "CULL_NONE": *, "CULL_BACK": number, "CULL_FRONT": number, "CULL_BOTH": number, "Geometry": *, "BoundingBox": *, "FpsCounter": *, "CgCanvas": *} source

import {CG} from './core/cg/cg_constants.js'

public CGL: {"Framebuffer": *, "Framebuffer2": *, "Geometry": *, "BoundingBox": *, "Marker": *, "WirePoint": *, "WireCube": *, "MatrixStack": *, "Mesh": *, "MESH": *, "ShaderLibMods": *, "Shader": *, "Uniform": *, "MESHES": *, "Context": *, "Texture": *, "TextureEffect": *, "isWindows": *, "getWheelSpeed": *, "getWheelDelta": *, "onLoadingAssetsFinished": *, "ProfileData": *, "UniColorShader": *, ...undefined: Object} source

import {CGL} from './core/cgl/index.js'

public CGP: {"Context": *, "Shader": *, "Mesh": *, "Pipeline": *, "Texture": *} source

import {CGP} from './core/cgp/index.js'

public CONSTANTS: {"MATH": *, "SHADER": *, "BLEND_MODES": *} source

import {CONSTANTS} from './core/cgl/constants.js'

public CONSTANTS: {"ANIM": *, "OP": *, "PORT": *, "PACO": *} source

import {CONSTANTS} from './core/constants.js'

public DEG2RAD: * source

import {DEG2RAD} from './core/cgl/cgl_utils.js'

multiply to get radians from degree, e.g. 360 * CGL.DEG2RAD

public EMBED: {} source

import {EMBED} from './core/embedding.js'

public MESH: {} source

import {MESH} from './core/cgl/cgl_mesh.js'

public MESHES: {} source

import {MESHES} from './core/cgl/cgl_simplerect.js'

public RAD2DEG: * source

import {RAD2DEG} from './core/cgl/cgl_utils.js'

to get degrees from radians, e.g. 3.14 * CGL.RAD2DEG

public ShaderLibMods: {"CGL.BLENDMODES": *, "CGL.BLENDMODES3": *, "CGL.LUMINANCE": *, "CGL.RANDOM_OLD": *, "CGL.RANDOM_LOW": *, "CGL.RANDOM_TEX": *} source

import {ShaderLibMods} from './core/cgl/cgl_shader_lib.js'

public UTILS: {} source

import {UTILS} from './core/utils.js'

public WEBAUDIO: {} source

import {WEBAUDIO} from './core/webaudio.js'

public base64Chars: string source

import {base64Chars} from './core/base64.js'

public base64lookup: * source

import {base64lookup} from './core/base64.js'

public generateUUID: * source

import {generateUUID} from './core/utils.js'

public getWheelDelta: * source

import {getWheelDelta} from './core/cgl/cgl_utils.js'

public getWheelSpeed: * source

import {getWheelSpeed} from './core/cgl/cgl_utils.js'

public isWindows(event: MouseEvent): Number: * source

import {isWindows} from './core/cgl/cgl_utils.js'

get normalized mouse wheel delta (including browser specific adjustment)

Return:

Number

normalized delta

public onLoadingAssetsFinished: * source

import {onLoadingAssetsFinished} from './core/cgl/cgl_utils.js'

public prefixedHash: * source

import {prefixedHash} from './core/utils.js'

public shortId: * source

import {shortId} from './core/utils.js'

public uuid: * source

import {uuid} from './core/utils.js'