Home Reference Source Repository
import Renderer from 'dh3dlib/js/base/Renderer.js'
public class | source

Renderer

Direct Subclass:

SimpleRenderer, ToonRenderer

Renderer class

Constructor Summary

Public Constructor
public

constructor(gl: WebGLRenderingContext, camera: Camera)

constructor

Method Summary

Public Methods
public
public
public

getContext(): *

public

getDynamicVertexData(dhObject: *): *

public

getVertexData(dhObject: *): *

public

render(dhObject: *)

public

renderMirror(dhObject: *, reflectionObjectArray: *)

public

setCamera(camera: *)

public

setClearColor(r: *, g: *, b: *, a: *)

public

setLight(light: *)

Public Constructors

public constructor(gl: WebGLRenderingContext, camera: Camera) source

constructor

Params:

NameTypeAttributeDescription
gl WebGLRenderingContext
camera Camera

Public Methods

public disableStencil() source

public enableStencil() source

public getContext(): * source

Return:

*

public getDynamicVertexData(dhObject: *): * source

Params:

NameTypeAttributeDescription
dhObject *

Return:

*

public getVertexData(dhObject: *): * source

Params:

NameTypeAttributeDescription
dhObject *

Return:

*

public render(dhObject: *) source

Params:

NameTypeAttributeDescription
dhObject *

public renderMirror(dhObject: *, reflectionObjectArray: *) source

Params:

NameTypeAttributeDescription
dhObject *
reflectionObjectArray *

public setCamera(camera: *) source

Params:

NameTypeAttributeDescription
camera *

public setClearColor(r: *, g: *, b: *, a: *) source

Params:

NameTypeAttributeDescription
r *
g *
b *
a *

public setLight(light: *) source

Params:

NameTypeAttributeDescription
light *