提交 e84bc180 编写于 作者: T tschw

Removed getAttributesKeys.

上级 ab8497bd
......@@ -139,11 +139,6 @@
Returns a name-value mapping of all active vertex attribute locations.
</div>
<h3>[method:Array getAttributesKeys]()</h3>
<div>
Returns an array of all active vertex attribute names.
</div>
<h2>Source</h2>
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
......
......@@ -409,26 +409,16 @@ THREE.WebGLProgram = ( function () {
// set up caching for attribute keys and locations
var getAttributes = function() { return this._cachedAttributes; };
var getAttribKeys = function() { return this._cachedAttribKeys; };
this.getAttributes = function() {
var attributes = fetchAttributeLocations( gl, program );
this._cachedAttributes = attributes;
this._cachedAttribKeys = Object.keys( attributes );
this.getAttributes = getAttributes;
this.getAttributesKeys = getAttribKeys;
return attributes;
};
this.getAttributesKeys = function() {
this.attributes();
return this._cachedAttribKeys;
};
//
this.id = programIdCount ++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册