canvas-toy
Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

constructor

  • new PointLight(gl: WebGLRenderingContext): PointLight

Properties

_asyncFinished

_asyncFinished: Promise = Promise.resolve(this)

_color

_color: IArray = vec3.fromValues(1, 1, 1)

_idensity

_idensity: number = 1

_localMatrix

_localMatrix: Mat4Array = mat4.create()

_localPosition

_localPosition: Vec3Array = vec3.create()

_localRotation

_localRotation: QuatArray = quat.create()

_localScaling

_localScaling: Vec3Array = vec3.fromValues(1, 1, 1)

_matrix

_matrix: Mat4Array = mat4.create()

_parent

_parent: Object3d = null

_position

_position: Vec3Array = vec3.create()

_projectCamera

_projectCamera: Camera

_rotation

_rotation: QuatArray = quat.create()

_scaling

_scaling: Vec3Array = vec3.fromValues(1, 1, 1)

_shadowRtt

_shadowRtt: Texture

_volume

_volume: Geometry

_worldToObjectMatrix

_worldToObjectMatrix: Mat4Array = mat4.create()

children

children: Object3d[] = []

depredations

depredations: string[]

scene

scene: Scene

startEvents

startEvents: Function[] = []

tag

tag: string

updateEvents

updateEvents: Function[] = []

Accessors

color

color:

idensity

idensity:

localMatrix

localMatrix:

Get local matrix

localPosition

localPosition:

Get local position

localRotation

localRotation:

Set the rotation globally

localScaling

localScaling:

Get local scaling factor

matrix

matrix:

Get global matrix

parent

parent:

Get transform parent of this object

position

position:

Get global position

rotation

rotation:

scaling

scaling:

Get global scaling factor.

worldToObjectMatrix

worldToObjectMatrix:

Methods

asyncFinished

  • asyncFinished(): any

genOtherMatrixs

  • genOtherMatrixs(): void

handleUniformProperty

  • handleUniformProperty(): void

registStart

  • registStart(updateFunction: Function): this
  • Add on start function, which will be called at start time;

    Parameters

    • updateFunction: Function

    Returns this

registUpdate

  • registUpdate(updateFunction: Function): this
  • Add on update function, which will be called at update time;

    Parameters

    • updateFunction: Function

    Returns this

rotateX

  • rotateX(angle: number): this
  • Rotates specific angle about X axis

    Parameters

    • angle: number

      angle (in radians) to rotate

    Returns this

rotateY

  • rotateY(angle: number): this
  • Rotates specific angle about Y axis

    Parameters

    • angle: number

      angle (in radians) to rotate

    Returns this

rotateZ

  • rotateZ(angle: number): this
  • Rotates specific angle about Z axis

    Parameters

    • angle: number

      angle (in radians) to rotate

    Returns this

setAsyncFinished

  • setAsyncFinished(promise: Promise): void

setColor

setIdensity

  • setIdensity(idensity: number): this

setLocalPosition

  • setLocalPosition(_localPosition: Vec3Array): this

setLocalRotation

  • setLocalRotation(_localRotation: QuatArray): this

setLocalScaling

  • setLocalScaling(_localScaling: Vec3Array): this

setParent

  • Set transform parent of this object, will also add this to parent‘s children list automatically

    Parameters

    Returns this

setPosition

setRotation

setScaling

setTransformFromParent

  • setTransformFromParent(): this
  • Reset all global transforms { position, rotation, scaling, worldToObjectMatrix } by parent, but keep all local transforms the same before called.

    Returns this

setWorldToObjectMatrix

  • setWorldToObjectMatrix(worldToObjectMatrix: Mat4Array): this

start

  • start(): void

translate

update

  • update(dt: number): void
  • Update object status after next delta time

    Parameters

    • dt: number

      delta time

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc