提交 aa144159 编写于 作者: M Mugen87

Docs: Clean up

上级 9f7f38b5
......@@ -279,13 +279,6 @@
<h2>Methods</h2>
<h3>[method:Integer allocTextureUnit]</h3>
<p>
Attempt to allocate a texture unit for use by a shader. Will warn if trying to allocate
more texture units than the GPU supports. This is mainly used internally.
See [page:WebGLRenderer.capabilities capabilities.maxTextures].
</p>
<h3>[method:null clear]( [param:Boolean color], [param:Boolean depth], [param:Boolean stencil] )</h3>
<p>
Tells the renderer to clear its color, depth or stencil drawing buffer(s).
......@@ -466,26 +459,6 @@
Setting [page:Boolean updateStyle] to false prevents any style changes to the output canvas.
</p>
<h3>[method:null setTexture2D]( [param:Texture texture], [param:number slot] )</h3>
<p>
texture -- The [page:Texture texture] that needs to be set.<br />
slot -- The number indicating which slot should be used by the texture.<br /><br />
This method sets the correct texture to the correct slot for the WebGL shader.
The slot number can be found as a value of the uniform of the sampler.<br /><br />
Note: This method replaces the older [method:null setTexture] method.
</p>
<h3>[method:null setTextureCube]( [param:CubeTexture cubeTexture], [param:Number slot] )</h3>
<p>
texture -- The [page:CubeTexture cubeTexture] that needs to be set.<br />
slot -- The number indicating which slot should be used by the texture.<br /><br />
This method sets the correct texture to the correct slot for the WebGL shader.
The slot number can be found as a value of the uniform of the sampler.
</p>
<h3>[method:null setViewport]( [param:Integer x], [param:Integer y], [param:Integer width], [param:Integer height] )<br />
[method:null setViewport]( [param:Vector4 vector] )</h3>
......
......@@ -254,12 +254,6 @@
<h2>方法</h2>
<h3>[method:Integer allocTextureUnit]</h3>
<p>
尝试分配纹理单元以供着色器使用。如果尝试分配超过GPU支持量的纹理单元,则会报警告。主要供内部使用。
请参阅[page:WebGLRenderer.capabilities capabilities.maxTextures]。
</p>
<h3>[method:null clear]( [param:Boolean color], [param:Boolean depth], [param:Boolean stencil] )</h3>
<p>
告诉渲染器清除颜色、深度或模板缓存.
......@@ -412,23 +406,6 @@
将[page:Boolean updateStyle]设置为false以阻止对canvas的样式做任何改变。
</p>
<h3>[method:null setTexture2D]( [param:Texture texture], [param:number slot] )</h3>
<p>
texture -- 需被设置的[page:Texture texture]<br />
slot -- 纹理应该使用的插槽号<br /><br />
该方法为WebGL着色器将正确的纹理设置到正确的插槽中。插槽号可作为取样器的全局变量(uniform)<br /><br />
说明: 该方法取代了旧的[method:null setTexture]方法
</p>
<h3>[method:null setTextureCube]( [param:CubeTexture cubeTexture], [param:Number slot] )</h3>
<p>
texture -- 需要被设置的[page:CubeTexture cubeTexture]<br />
slot -- 纹理应该使用的插槽号<br /><br />
该方法为WebGL着色器将正确的纹理设置到正确的插槽中。插槽号可作为取样器的全局变量(uniform)
</p>
<h3>[method:null setViewport]( [param:Integer x], [param:Integer y], [param:Integer width], [param:Integer height] )</h3>
<p>将视口大小设置为(x, y)到 (x + width, y + height).</p>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册