浏览代码

revised api

aardgoose 8 年之前
父节点
当前提交
45021d37bc
共有 2 个文件被更改,包括 6 次插入9 次删除
  1. 5 3
      docs/api/renderers/WebGLRenderer.html
  2. 1 6
      src/renderers/WebGLRenderer.js

+ 5 - 3
docs/api/renderers/WebGLRenderer.html

@@ -212,6 +212,11 @@
 		Used internally by the renderer to keep track of various sub object properties.
 		</div>
 
+		<h3>[property:WebGLRenderLists renderLists]</h3>
+		<div>
+		Internal object handling ordering of scene object rendering.
+		</div>
+
 		<h3>[property:WebGLShadowMap shadowMap]</h3>
 		<div>
 		This contains the reference to the shadow map, if used.
@@ -354,9 +359,6 @@
 		<h3>[method:string getPrecision]()</h3>
 		<div>This gets the precision used by the shaders. It returns "highp","mediump" or "lowp".</div>
 
-		<h3>[method:WebGLRenderLists getRenderLists]()</h3>
-		<div>Returns the renderer's internal WebGLRenderLists object.</div>
-
 		<h3>[method:Object getSize]()</h3>
 		<div>Returns an object containing the width and height of the renderer's output canvas, in pixels.</div>
 

+ 1 - 6
src/renderers/WebGLRenderer.js

@@ -343,6 +343,7 @@ function WebGLRenderer( parameters ) {
 	this.capabilities = capabilities;
 	this.extensions = extensions;
 	this.properties = properties;
+	this.renderLists = renderLists;
 	this.state = state;
 
 	// shadow map
@@ -406,12 +407,6 @@ function WebGLRenderer( parameters ) {
 
 	};
 
-	this.getRenderLists = function () {
-
-		return renderLists;
-
-	};
-
 	this.getSize = function () {
 
 		return {