Home Reference Source
public class | source

DrawKickerWorld

Static Member Summary

Static Public Members
public static

Static Method Summary

Static Public Methods
public static

drawGeometry(geometry: *, glem: *, gl: *, i: *, primitiveType: *, vertexN: *)

public static
public static

setCamera(gl: *, glslProgram: *, material: *, world_m: *, normal_m: *, camera: *, mesh: *)

public static

setVRCamera(gl: *, glslProgram: *, material: *, world_m: *, normal_m: *, webvrFrameData: *, mesh: *, leftOrRight: *)

Constructor Summary

Public Constructor
public

constructor(enforcer: *)

Member Summary

Private Members
private

Method Summary

Public Methods
public

draw(data: *)

Private Methods
private

_setUpOrTearDownTextures(isSetUp: *, material: *): *

private

_setupOtherTextures(lights: *)

private

Static Public Members

public static [singleton]: * source

Static Public Methods

public static drawGeometry(geometry: *, glem: *, gl: *, i: *, primitiveType: *, vertexN: *) source

Params:

NameTypeAttributeDescription
geometry *
glem *
gl *
i *
primitiveType *
vertexN *

public static getInstance(): * source

Return:

*

public static setCamera(gl: *, glslProgram: *, material: *, world_m: *, normal_m: *, camera: *, mesh: *) source

Params:

NameTypeAttributeDescription
gl *
glslProgram *
material *
world_m *
normal_m *
camera *
mesh *

public static setVRCamera(gl: *, glslProgram: *, material: *, world_m: *, normal_m: *, webvrFrameData: *, mesh: *, leftOrRight: *) source

Params:

NameTypeAttributeDescription
gl *
glslProgram *
material *
world_m *
normal_m *
webvrFrameData *
mesh *
leftOrRight *

Public Constructors

public constructor(enforcer: *) source

Params:

NameTypeAttributeDescription
enforcer *

Private Members

private _glslProgram: * source

Public Methods

public draw(data: *) source

Params:

NameTypeAttributeDescription
data *

Private Methods

private _setUpOrTearDownTextures(isSetUp: *, material: *): * source

Params:

NameTypeAttributeDescription
isSetUp *
material *

Return:

*

private _setupOtherTextures(lights: *) source

Params:

NameTypeAttributeDescription
lights *

private _tearDownOtherTextures(lights: *) source

Params:

NameTypeAttributeDescription
lights *