WebGLRenderer


Inheritance WebGLRenderer Renderer Module hilo/renderer/WebGLRenderer Requires hilo/core/Class, hilo/core/Hilo, hilo/renderer/Renderer, hilo/geom/Matrix Source WebGLRenderer.js
WebGLRenderer The WebGLRenderer, all the visual object is drawing on the canvas using WebGL.The stage will create different renderer depend on the canvas and renderType properties, developer need not use this class directly.

Properties

Show Inherited Properties
Property Defined
gl:WebGLRenderingContext
The WebGL context of the renderer, readonly.
WebGLRenderer
static WebGL context Options
WebGLRenderer
static The max num of batch draw, default is 2000.
WebGLRenderer
static The num of vertex attributes, readonly.
WebGLRenderer

Methods

Show Inherited Methods
Method Defined
WebGLRenderer(properties:Object)
Constructor
WebGLRenderer
static is WebGL supported, readonly.
WebGLRenderer

Property Detail

[Static] ATTRIBUTE_NUM
The num of vertex attributes, readonly.
[Static] contextOptions
WebGL context Options
see:
https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getContextAttributes
gl:WebGLRenderingContext
The WebGL context of the renderer, readonly.
[Static] MAX_BATCH_NUM
The max num of batch draw, default is 2000.

Constructor

WebGLRenderer(properties:Object)
parameters
properties:Object — The properties to create a renderer, contains all writeable props of this class.

Method Detail

[Static] isSupport()
is WebGL supported, readonly.