mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 13:13:43 +00:00
Expose more functions (until we tidy this up)
This commit is contained in:
parent
86b829efa6
commit
56a0b3b3bf
1 changed files with 13 additions and 1 deletions
|
@ -85,6 +85,15 @@ var RenderTexture = new Class({
|
|||
*/
|
||||
this.renderer = scene.sys.game.renderer;
|
||||
|
||||
/**
|
||||
* A reference to the Texture Manager.
|
||||
*
|
||||
* @name Phaser.GameObjects.RenderTexture#textureManager
|
||||
* @type {Phaser.Textures.TextureManager}
|
||||
* @since 3.12.0
|
||||
*/
|
||||
this.textureManager = scene.sys.textures;
|
||||
|
||||
/**
|
||||
* The tint of the Render Texture when rendered.
|
||||
*
|
||||
|
@ -149,8 +158,11 @@ var RenderTexture = new Class({
|
|||
this.fill = RenderTextureWebGL.fill;
|
||||
this.clear = RenderTextureWebGL.clear;
|
||||
this.draw = RenderTextureWebGL.draw;
|
||||
this.drawFrame = RenderTextureWebGL.drawFrame;
|
||||
this.drawList = RenderTextureWebGL.drawList;
|
||||
this.drawGameObject = RenderTextureWebGL.drawGameObject;
|
||||
this.drawTexture = RenderTextureWebGL.drawTexture;
|
||||
this.drawFrame = RenderTextureWebGL.drawFrame;
|
||||
this.drawGroup = RenderTextureWebGL.drawGroup;
|
||||
this.texture = this.renderer.createTexture2D(0, gl.NEAREST, gl.NEAREST, gl.CLAMP_TO_EDGE, gl.CLAMP_TO_EDGE, gl.RGBA, null, width, height, false);
|
||||
this.framebuffer = this.renderer.createFramebuffer(width, height, this.texture, false);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue