Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

Protected _UIElement

_UIElement: boolean = false

Private _animationInterval

_animationInterval: any

Protected _collisionBox

_collisionBox: CollisionBox = new CollisionBox()

Protected _engine

_engine: Engine

Private _position

_position: Vector3 = new Vector3(0, 0, 0)

Protected camera

camera: Camera | null

Protected hidden

hidden: boolean = false

loaded

loaded: boolean = false

matrix

matrix: number[] = unit()

Protected maxBaseSize

maxBaseSize: Vector3 = new Vector3(0, 0, 0)

Protected maxSize

maxSize: Vector3 = new Vector3(0, 0, 0)

Protected minBaseSize

minBaseSize: Vector3 = new Vector3(0, 0, 0)

Protected minSize

minSize: Vector3 = new Vector3(0, 0, 0)

name

name: string = "Just entity :)"

normals

normals: number[] = []

normalsBuffer

normalsBuffer: WebGLBuffer | null = null

rotation

rotation: Vector3 = new Vector3(0, 0, 0)

rotationInDeg

rotationInDeg: Vector3 = new Vector3(0, 0, 0)

rotationMatrix

rotationMatrix: number[] = unit()

rotationPoint

rotationPoint: Vector3 = new Vector3(0, 0, 0)

Protected rotationPointPos

rotationPointPos: string | null = null

rotationSelf

rotationSelf: Vector3 = new Vector3(0, 0, 0)

scaling

scaling: Vector3 = new Vector3(1, 1, 1)

selectable

selectable: boolean = false

Protected shaderProgram

shaderProgram: ShaderProgram

texture

texture: Texture

textureCoordinates

textureCoordinates: number[] = []

textureCoordinatesBuffer

textureCoordinatesBuffer: WebGLBuffer | null = null

uiMatrix

uiMatrix: number[] | null = null

vertexes

vertexes: number[] = []

vertexesBuffer

vertexesBuffer: WebGLBuffer | null = null

verticalAlign

verticalAlign: boolean = true

Protected webgl

webgl: WebGLRenderingContext

worldMatrix

worldMatrix: number[] = unit()

Accessors

UIElement

  • get UIElement(): boolean
  • set UIElement(v: boolean): void

collisionBox

engine

position

size

  • get size(): object

Methods

animate

  • animate(fps: number, animateFunction: function): any

checkCollision

destroy

  • destroy(): void

draw

  • draw(): void

getPositionOnScreen

  • getPositionOnScreen(): void

hide

  • hide(): void

move

  • move(x: number, y: number, z: number): void

moveRelativeToTheCamera

  • moveRelativeToTheCamera(x: number, y: number, z: number): void

resize

  • resize(x: number, y: number, z: number): void
  • Resize objects to pixels

    Parameters

    • x: number

      pixels

    • y: number

      pixels

    • z: number

      pixels

    Returns void

rotate

  • rotate(x: number, y: number, z: number): void

rotateSelf

  • rotateSelf(x: number, y: number, z: number): void

scale

  • scale(x: number, y: number, z: number): void

scaleToPixels

  • scaleToPixels(x: number, y: number, z: number): void

scaleToPixelsX

  • scaleToPixelsX(x: number): void

setPosition

  • setPosition(vector: Vector3): void
  • setPosition(array: number[]): void
  • setPosition(x: number, y: number, z: number): void
  • Sets position for object. Using another vector.

    Parameters

    Returns void

  • Sets position for object. Using array of coordinates.

    Parameters

    • array: number[]

    Returns void

  • Sets position for object. Using coordinates.

    Parameters

    • x: number
    • y: number
    • z: number

    Returns void

setRotation

  • setRotation(x: number, y: number, z: number): void
  • Set rotation for x, y, z axis.

    Parameters

    • x: number

      in deg.

    • y: number

      in deg.

    • z: number

      in deg.

    Returns void

setRotationPoint

  • setRotationPoint(x: number, y: number, z: number): void
  • setRotationPoint(point: String): void

setTexture

  • setTexture(texture: Texture): void

show

  • show(): void

update

  • update(): void

updateMatrixes

  • updateMatrixes(): void

updateRelativeToCameraPosition

  • updateRelativeToCameraPosition(): void

useShader

Object literals

relativeToCameraPosition

relativeToCameraPosition: object

depth

depth: number = 0

max

max: object

x

x: number = 0

y

y: number = 0

min

min: object

x

x: number = 0

y

y: number = 0

Generated using TypeDoc