Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

Protected _UIElement

_UIElement: boolean = false

Protected _collisionBox

_collisionBox: CollisionBox = new CollisionBox()

Private _drawingMode

_drawingMode: number

Protected _engine

_engine: Engine

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

drawingMode

  • get drawingMode(): number
  • set drawingMode(value: number): void

engine

position

size

  • get size(): object

Methods

animate

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

checkCollision

compile

  • compile(fileText: String): void
  • Function to compile object from text of .obj file.

    Parameters

    • fileText: String

    Returns void

destroy

  • destroy(): void

draw

  • draw(): void

getPositionOnScreen

  • getPositionOnScreen(): void

hide

  • hide(): void

loadFromObj

  • loadFromObj(path: string): void
  • Async load object using ajax and compile on load.

    Parameters

    • path: string

    Returns void

move

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

moveRelativeToTheCamera

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

onload

  • onload(): void

resize

  • resize(x: number, y: number, z: number): 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

setDrawingMode

  • setDrawingMode(mode: string): void
  • Sets how WebGL will draw object

    Parameters

    • mode: string

    Returns void

setPosition

  • setPosition(vector: Vector3): void
  • setPosition(array: number[]): void
  • setPosition(x: number, y: number, z: number): void

setRotation

  • setRotation(x: number, y: number, z: number): 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

useMaterial

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