webgl.ExtensionInstancedArrays

ExtensionInstancedArrays

package js-html-webgl

Available on js

The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type.

Documentation ANGLE_instanced_arrays by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See:

Methods

drawArraysInstancedANGLE (mode:Int, first:Int, count:Int, primcount:Int):Void

Behaves identically to WebGLRenderingContext.drawArrays() except that multiple instances of the range of elements are executed, and the instance advances for each iteration.

drawElementsInstancedANGLE (mode:Int, count:Int, type:Int, offset:Int, primcount:Int):Void

Behaves identically to WebGLRenderingContext.drawElements() except that multiple instances of the set of elements are executed and the instance advances between each set.

vertexAttribDivisorANGLE (index:Int, divisor:Int):Void

Modifies the rate at which generic vertex attributes advance when rendering multiple instances of primitives with ANGLE_instanced_arrays.drawArraysInstancedANGLE() and ANGLE_instanced_arrays.drawElementsInstancedANGLE().

Static variables

static inline read only VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE:Int = 35070

© 2005–2016 Haxe Foundation
Licensed under a MIT license.
http://api.haxe.org/js/html/webgl/ExtensionInstancedArrays.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部