Add getRenderTarget; deprecate getCurrentRenderTarget() (#22654)

* Add `getRenderTarget`; deprecate `getCurrentRenderTarget()`

* Update revision number; Update website; Add definition contributor

Changed project website to the more common https://threejs.org
This commit is contained in:
Daniel Hritzkiv
2018-01-03 12:39:29 -08:00
committed by Mohamed Hegazy
parent 018ef9fb6f
commit 8829824eae
2 changed files with 7 additions and 3 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
// Type definitions for three.js 0.84
// Project: http://mrdoob.github.com/three.js/
// Definitions by: Kon <http://phyzkit.net/>, Satoru Kimura <https://github.com/gyohk>, Florent Poujol <https://github.com/florentpoujol>, SereznoKot <https://github.com/SereznoKot>, HouChunlei <https://github.com/omni360>, Ivo <https://github.com/ivoisbelongtous>, David Asmuth <https://github.com/piranha771>, Brandon Roberge, Qinsi ZHU <https://github.com/qszhusightp>, Toshiya Nakakura <https://github.com/nakakura>, Poul Kjeldager Sørensen <https://github.com/s093294>, Stefan Profanter <https://github.com/Pro>, Edmund Fokschaner <https://github.com/efokschaner>, Roelof Jooste <https://github.com/PsychoSTS>
// Type definitions for three.js 0.89
// Project: https://threejs.org
// Definitions by: Kon <http://phyzkit.net/>, Satoru Kimura <https://github.com/gyohk>, Florent Poujol <https://github.com/florentpoujol>, SereznoKot <https://github.com/SereznoKot>, HouChunlei <https://github.com/omni360>, Ivo <https://github.com/ivoisbelongtous>, David Asmuth <https://github.com/piranha771>, Brandon Roberge, Qinsi ZHU <https://github.com/qszhusightp>, Toshiya Nakakura <https://github.com/nakakura>, Poul Kjeldager Sørensen <https://github.com/s093294>, Stefan Profanter <https://github.com/Pro>, Edmund Fokschaner <https://github.com/efokschaner>, Roelof Jooste <https://github.com/PsychoSTS>, Daniel Hritzkiv <https://github.com/dhritzkiv>
// Definitions: https://github.com//DefinitelyTyped
export * from "./three-core";
+4
View File
@@ -5216,6 +5216,10 @@ export class WebGLRenderer implements Renderer {
setTexture(texture: Texture, slot: number): void;
setTexture2D(texture: Texture, slot: number): void;
setTextureCube(texture: Texture, slot: number): void;
getRenderTarget(): RenderTarget;
/**
* @deprecated Use getRenderTarget instead.
*/
getCurrentRenderTarget(): RenderTarget;
setRenderTarget(renderTarget: RenderTarget): void;
readRenderTargetPixels( renderTarget: RenderTarget, x: number, y: number, width: number, height: number, buffer: any ): void;