提交 83c91519 编写于 作者: W WestLangley

Rename method

上级 902fddb7
......@@ -348,7 +348,7 @@
<h3>[method:Number getMaxAnisotropy]()</h3>
<div>This returns the anisotropy level of the textures.</div>
<h3>[method:Object getPhysicalSize]()</h3>
<h3>[method:Object getDrawingBufferSize]()</h3>
<div>Returns an object containing the width and height of the renderer's drawing buffer, in pixels.</div>
<h3>[method:number getPixelRatio]()</h3>
......@@ -358,7 +358,7 @@
<div>This gets the precision used by the shaders. It returns "highp","mediump" or "lowp".</div>
<h3>[method:Object getSize]()</h3>
<div>Returns an object containing the logical width and height of the renderer's output canvas, in pixels.</div>
<div>Returns an object containing the width and height of the renderer's output canvas, in pixels.</div>
<h3>[method:null resetGLState]( )</h3>
<div>Reset the GL state to default. Called internally if the WebGL context is lost.</div>
......
......@@ -415,11 +415,11 @@ function WebGLRenderer( parameters ) {
};
this.getPhysicalSize = function () {
this.getDrawingBufferSize = function () {
return {
width: _canvas.width,
height: _canvas.height
width: _width * _pixelRatio,
height: _height * _pixelRatio
};
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册