C# Class Reign.Video.D3D11.RenderTarget

Inheritance: Texture2D, IRenderTarget
显示文件 Open project: reignstudios/ReignSDK

Public Methods

Method Description
Dispose ( ) : void
Enable ( ) : void
Enable ( IDepthStencil depthStencil ) : void
ReadPixel ( Point2 position, Color4 &color ) : bool
ReadPixels ( Color4 colors ) : void
ReadPixels ( byte data ) : void
RenderTarget ( IDisposableResource parent, System.Image image, int width, int height, bool generateMipmaps, MultiSampleTypes multiSampleType, SurfaceFormats surfaceFormat, DepthStencilFormats depthStencilFormat, RenderTargetUsage renderTargetUsage, BufferUsages usage, Loader loadedCallback ) : System
RenderTarget ( IDisposableResource parent, string filename, int width, int height, bool generateMipmaps, MultiSampleTypes multiSampleType, SurfaceFormats surfaceFormat, DepthStencilFormats depthStencilFormat, RenderTargetUsage renderTargetUsage, BufferUsages usage, Loader loadedCallback ) : System

Protected Methods

Method Description
init ( IDisposableResource parent, Image image, int width, int height, bool generateMipmaps, MultiSampleTypes multiSampleType, SurfaceFormats surfaceFormat, RenderTargetUsage renderTargetUsage, BufferUsages usage, bool isRenderTarget, Loader loadedCallback ) : bool

Private Methods

Method Description
initDepthStencil ( int width, int height, DepthStencilFormats depthStencilFormat ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Enable() public method

public Enable ( ) : void
return void

Enable() public method

public Enable ( IDepthStencil depthStencil ) : void
depthStencil IDepthStencil
return void

ReadPixel() public method

public ReadPixel ( Point2 position, Color4 &color ) : bool
position Point2
color Reign.Core.Color4
return bool

ReadPixels() public method

public ReadPixels ( Color4 colors ) : void
colors Reign.Core.Color4
return void

ReadPixels() public method

public ReadPixels ( byte data ) : void
data byte
return void

RenderTarget() public method

public RenderTarget ( IDisposableResource parent, System.Image image, int width, int height, bool generateMipmaps, MultiSampleTypes multiSampleType, SurfaceFormats surfaceFormat, DepthStencilFormats depthStencilFormat, RenderTargetUsage renderTargetUsage, BufferUsages usage, Loader loadedCallback ) : System
parent IDisposableResource
image System.Image
width int
height int
generateMipmaps bool
multiSampleType MultiSampleTypes
surfaceFormat SurfaceFormats
depthStencilFormat DepthStencilFormats
renderTargetUsage RenderTargetUsage
usage BufferUsages
loadedCallback Reign.Core.Loader
return System

RenderTarget() public method

public RenderTarget ( IDisposableResource parent, string filename, int width, int height, bool generateMipmaps, MultiSampleTypes multiSampleType, SurfaceFormats surfaceFormat, DepthStencilFormats depthStencilFormat, RenderTargetUsage renderTargetUsage, BufferUsages usage, Loader loadedCallback ) : System
parent IDisposableResource
filename string
width int
height int
generateMipmaps bool
multiSampleType MultiSampleTypes
surfaceFormat SurfaceFormats
depthStencilFormat DepthStencilFormats
renderTargetUsage RenderTargetUsage
usage BufferUsages
loadedCallback Loader
return System

init() protected method

protected init ( IDisposableResource parent, Image image, int width, int height, bool generateMipmaps, MultiSampleTypes multiSampleType, SurfaceFormats surfaceFormat, RenderTargetUsage renderTargetUsage, BufferUsages usage, bool isRenderTarget, Loader loadedCallback ) : bool
parent IDisposableResource
image Image
width int
height int
generateMipmaps bool
multiSampleType MultiSampleTypes
surfaceFormat SurfaceFormats
renderTargetUsage RenderTargetUsage
usage BufferUsages
isRenderTarget bool
loadedCallback Loader
return bool