Packagelaya.webgl.resource
Classpublic class WebGLRenderTarget
InheritanceWebGLRenderTarget Inheritance laya.resource.Bitmap



Public Properties
 PropertyDefined By
  depthStencilBuffer : *
[read-only]
WebGLRenderTarget
  frameBuffer : *
[read-only]
WebGLRenderTarget
Public Methods
 MethodDefined By
  
WebGLRenderTarget(width:int, height:int, surfaceFormat:int, surfaceType:int, depthStencilFormat:int, mipMap:Boolean = false, repeat:Boolean = false, minFifter:int = -1, magFifter:int = 1)
WebGLRenderTarget
Protected Methods
 MethodDefined By
  
[override]
WebGLRenderTarget
  
[override]
WebGLRenderTarget
Property Detail
depthStencilBufferproperty
depthStencilBuffer:*  [read-only]


Implementation
    public function get depthStencilBuffer():*
frameBufferproperty 
frameBuffer:*  [read-only]


Implementation
    public function get frameBuffer():*
Constructor Detail
WebGLRenderTarget()Constructor
public function WebGLRenderTarget(width:int, height:int, surfaceFormat:int, surfaceType:int, depthStencilFormat:int, mipMap:Boolean = false, repeat:Boolean = false, minFifter:int = -1, magFifter:int = 1)



Parameters
width:int
 
height:int
 
surfaceFormat:int (default = NaN)
 
surfaceType:int (default = NaN)
 
depthStencilFormat:int (default = NaN)
 
mipMap:Boolean (default = false)
 
repeat:Boolean (default = false)
 
minFifter:int (default = -1)
 
magFifter:int (default = 1)
Method Detail
detoryResource()method
override protected function detoryResource():void

recreateResource()method 
override protected function recreateResource():void