src/render/RenderWebGL.js
/**
 * WebGL image rendering cache
 *
 * @param render is a RenderWebGL instance
 * @returns {RenderWebGLImageCache}
 */
WebGL image rendering cache
@param render is a RenderWebGL instance
@returns {RenderWebGLImageCache}
WebGL image rendering cache @param render is a RenderWebGL instance @returns { RenderWebGLImageCache }
function RenderWebGLImageCache(render) {
    assert(render instanceof RenderWebGL);
    this.render = render;
    this.imageCacheCapacity = 1;
    this.imageCache = {};
    this.imageCacheSize = 0;
    var initialCapacity = 10;
    this.verticesArray = new Float32Array(2 * 6 * initialCapacity);
    this.coordinatesArray = new Float32Array(2 * 6 * initialCapacity);
    this.capacity = initialCapacity;
    this.size = 0;
}
function RenderWebGLImageCache ( render ) { assert ( render instanceof RenderWebGL ) ; this . render = render ; this . imageCacheCapacity = 1 ; this . imageCache = { } ; this . imageCacheSize = 0 ; var initialCapacity = 10 ; this . verticesArray = new Float32Array ( 2 * 6 * initialCapacity ) ; this . coordinatesArray = new Float32Array ( 2 * 6 * initialCapacity ) ; this . capacity = initialCapacity ; this . size = 0 ; }
WebGL image rendering cache
 @param render is a RenderWebGL instance
 @returns {RenderWebGLImageCache}
WebGL image rendering cache @param render is a RenderWebGL instance @returns { RenderWebGLImageCache }
// image cache // arrays