Home Reference Source
import GLBoostLowContext from 'glboost/src/low_level/core/GLBoostLowContext.js'
public class | source

GLBoostLowContext

Direct Subclass:

GLBoostMiddleContext

Static Member Summary

Static Private Members
private static

Constructor Summary

Public Constructor
public

constructor(canvas: HTMLCanvasElement, initParameter: Object, gl: WebGLRenderingContext, width: number, height: number)

Member Summary

Public Members
public get
public get
public set
public get
public get
public get
public get
public get
public set
public get
Private Members
private
private

Method Summary

Public Methods
public

createAxis(length: number): *

public
public
public
public

createCube(widthVector: Vector3, vertexColor: Vector4): *

public

createCubeTexture(userFlavorName: string, parameters: Object): *

public
public

createFrustumCamera(lookat: Object, perspective: Object): *

public
public

createOrthoCamera(lookat: Object, ortho: Object): *

public
public

createParticle(centerPointData: Object, particleWidth: number, particleHeight: number, customVertexAttributes: Object, performanceHint: number): *

public

createPerspectiveCamera(lookat: Object, perspective: Object): *

public

createPhinaTexture(width: number, height: number, fillStyle: string, parameters: Object): *

public

createPlane(width: number, height: number, uSpan: number, vSpan: number, customVertexAttributes: Object, isUVRepeat: boolean): *

public

createScreen(screen: Object, customVertexAttributes: Object): *

public

createSphere(radius: number, widthSegments: number, heightSegments: number, vertexColor: Vector4): *

public

createTexture(src: string, userFlavorName: string, parameters: Object): *

public

createTexturesForRenderTarget(width: number, height: number, textureNum: number): Array

create textures as render target.

public
public
public
public
public

setPropertiesFromJson(arg: Object | string, queryType: number): *

public

toString(): *

Private Methods
private

Static Private Members

private static _instanceCount: number source

Public Constructors

public constructor(canvas: HTMLCanvasElement, initParameter: Object, gl: WebGLRenderingContext, width: number, height: number) source

Params:

NameTypeAttributeDescription
canvas HTMLCanvasElement
initParameter Object
gl WebGLRenderingContext
width number
height number

Public Members

public get belongingCanvasId: * source

public get brdfLutTexture: * source

public set currentGlobalStates: Array<number> source

public get currentGlobalStates: * source

public get defaultDummyTexture: * source

public get defaultDummyTextureCube: * source

public get glBoostMonitor: * source

public get glContext: * source

public set globalStatesUsage: string source

public get globalStatesUsage: * source

Private Members

private __system: GLBoostSystem source

private _instanceName: string source

Public Methods

public createAxis(length: number): * source

Params:

NameTypeAttributeDescription
length number

Return:

*

public createBlendShapeGeometry(): * source

Return:

*

public createCameraController(options: Object): * source

Params:

NameTypeAttributeDescription
options Object

Return:

*

public createClassicMaterial(): * source

Return:

*

public createCube(widthVector: Vector3, vertexColor: Vector4): * source

Params:

NameTypeAttributeDescription
widthVector Vector3
vertexColor Vector4

Return:

*

public createCubeTexture(userFlavorName: string, parameters: Object): * source

Params:

NameTypeAttributeDescription
userFlavorName string
parameters Object

Return:

*

public createDepthTexturesForRenderTarget(width: number, height: number): * source

Params:

NameTypeAttributeDescription
width number
height number

Return:

*

public createFrustumCamera(lookat: Object, perspective: Object): * source

Params:

NameTypeAttributeDescription
lookat Object
perspective Object

Return:

*

public createGeometry(): * source

Return:

*

public createOrthoCamera(lookat: Object, ortho: Object): * source

Params:

NameTypeAttributeDescription
lookat Object
ortho Object

Return:

*

public createPBRMetallicRoughnessMaterial(): * source

Return:

*

public createParticle(centerPointData: Object, particleWidth: number, particleHeight: number, customVertexAttributes: Object, performanceHint: number): * source

Params:

NameTypeAttributeDescription
centerPointData Object
particleWidth number
particleHeight number
customVertexAttributes Object
performanceHint number

Return:

*

public createPerspectiveCamera(lookat: Object, perspective: Object): * source

Params:

NameTypeAttributeDescription
lookat Object
perspective Object

Return:

*

public createPhinaTexture(width: number, height: number, fillStyle: string, parameters: Object): * source

Params:

NameTypeAttributeDescription
width number
height number
fillStyle string
parameters Object
  • optional
  • default: undefined
  • nullable: true

Return:

*

public createPlane(width: number, height: number, uSpan: number, vSpan: number, customVertexAttributes: Object, isUVRepeat: boolean): * source

Params:

NameTypeAttributeDescription
width number
height number
uSpan number
vSpan number
customVertexAttributes Object
isUVRepeat boolean

Return:

*

public createScreen(screen: Object, customVertexAttributes: Object): * source

Params:

NameTypeAttributeDescription
screen Object
customVertexAttributes Object

Return:

*

public createSphere(radius: number, widthSegments: number, heightSegments: number, vertexColor: Vector4): * source

Params:

NameTypeAttributeDescription
radius number
widthSegments number
heightSegments number
vertexColor Vector4

Return:

*

public createTexture(src: string, userFlavorName: string, parameters: Object): * source

Params:

NameTypeAttributeDescription
src string
userFlavorName string
parameters Object
  • optional
  • default: undefined
  • nullable: true

Return:

*

public createTexturesForRenderTarget(width: number, height: number, textureNum: number): Array source

create textures as render target. (and attach it to framebuffer object internally.)

Params:

NameTypeAttributeDescription
width number

width - width of texture

height number

height - height of texture

textureNum number

textureNum - the number of creation.

Return:

Array

an array of created textures.

public createWalkThroughCameraController(options: Object): * source

Params:

NameTypeAttributeDescription
options Object

Return:

*

public disableAllGLState() source

public reflectGlobalGLState() source

public restoreGlobalStatesToDefault() source

public setPropertiesFromJson(arg: Object | string, queryType: number): * source

Params:

NameTypeAttributeDescription
arg Object | string
queryType number
  • optional
  • default: undefined

Return:

*

public toString(): * source

Return:

*

Private Methods

private _setName() source