C# Class UnityEngine.RenderTexture

Inheritance: Texture
Mostra file Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Private Properties

Property Type Description
DiscardContents void
GetColorBuffer void
GetDepthBuffer void
GetTemporary RenderTexture
GetTemporary RenderTexture
GetTemporary RenderTexture
GetTemporary RenderTexture
GetTemporary RenderTexture
GetTexelOffset Vector2
INTERNAL_CALL_Create bool
INTERNAL_CALL_DiscardContents void
INTERNAL_CALL_GenerateMips void
INTERNAL_CALL_GetNativeDepthBufferPtr void
INTERNAL_CALL_IsCreated bool
INTERNAL_CALL_MarkRestoreExpected void
INTERNAL_CALL_Release void
Internal_CreateRenderTexture void
Internal_GetDimension TextureDimension
Internal_GetHeight int
Internal_GetWidth int
Internal_SetDimension void
Internal_SetHeight void
Internal_SetSRGBReadWrite void
Internal_SetWidth void
ReleaseTemporary void
SetBorderColor void
SetGlobalShaderProperty void
SupportsStencil bool

Public Methods

Method Description
Create ( ) : bool

Actually creates the RenderTexture.

DiscardContents ( ) : void

Discards the contents of the RenderTexture.

GenerateMips ( ) : void

Generate mipmap levels of a render texture.

GetNativeDepthBufferPtr ( ) : IntPtr

Retrieve a native (underlying graphics API) pointer to the depth buffer resource.

IsCreated ( ) : bool

Is the render texture actually created?

MarkRestoreExpected ( ) : void

Indicate that there's a RenderTexture restore operation expected.

Release ( ) : void

Releases the RenderTexture.

RenderTexture ( int width, int height, int depth ) : System

Creates a new RenderTexture object.

RenderTexture ( int width, int height, int depth, RenderTextureFormat format ) : System

Creates a new RenderTexture object.

RenderTexture ( int width, int height, int depth, RenderTextureFormat format, RenderTextureReadWrite readWrite ) : System

Creates a new RenderTexture object.

Private Methods

Method Description
DiscardContents ( bool discardColor, bool discardDepth ) : void
GetColorBuffer ( RenderBuffer &res ) : void
GetDepthBuffer ( RenderBuffer &res ) : void
GetTemporary ( int width, int height ) : RenderTexture
GetTemporary ( int width, int height, [ depthBuffer, [ format, [ readWrite, [ antiAliasing ) : RenderTexture
GetTemporary ( int width, int height, int depthBuffer ) : RenderTexture
GetTemporary ( int width, int height, int depthBuffer, RenderTextureFormat format ) : RenderTexture
GetTemporary ( int width, int height, int depthBuffer, RenderTextureFormat format, RenderTextureReadWrite readWrite ) : RenderTexture
GetTexelOffset ( ) : Vector2
INTERNAL_CALL_Create ( RenderTexture self ) : bool
INTERNAL_CALL_DiscardContents ( RenderTexture self ) : void
INTERNAL_CALL_GenerateMips ( RenderTexture self ) : void
INTERNAL_CALL_GetNativeDepthBufferPtr ( RenderTexture self, IntPtr &value ) : void
INTERNAL_CALL_IsCreated ( RenderTexture self ) : bool
INTERNAL_CALL_MarkRestoreExpected ( RenderTexture self ) : void
INTERNAL_CALL_Release ( RenderTexture self ) : void
Internal_CreateRenderTexture ( [ rt ) : void
Internal_GetDimension ( RenderTexture rt ) : TextureDimension
Internal_GetHeight ( RenderTexture mono ) : int
Internal_GetWidth ( RenderTexture mono ) : int
Internal_SetDimension ( RenderTexture rt, TextureDimension dim ) : void
Internal_SetHeight ( RenderTexture mono, int width ) : void
Internal_SetSRGBReadWrite ( RenderTexture mono, bool sRGB ) : void
Internal_SetWidth ( RenderTexture mono, int width ) : void
ReleaseTemporary ( RenderTexture temp ) : void
SetBorderColor ( Color color ) : void
SetGlobalShaderProperty ( string propertyName ) : void
SupportsStencil ( RenderTexture rt ) : bool

Method Details

Create() public method

Actually creates the RenderTexture.

public Create ( ) : bool
return bool

DiscardContents() public method

Discards the contents of the RenderTexture.

public DiscardContents ( ) : void
return void

GenerateMips() public method

Generate mipmap levels of a render texture.

public GenerateMips ( ) : void
return void

GetNativeDepthBufferPtr() public method

Retrieve a native (underlying graphics API) pointer to the depth buffer resource.

public GetNativeDepthBufferPtr ( ) : IntPtr
return IntPtr

IsCreated() public method

Is the render texture actually created?

public IsCreated ( ) : bool
return bool

MarkRestoreExpected() public method

Indicate that there's a RenderTexture restore operation expected.

public MarkRestoreExpected ( ) : void
return void

Release() public method

Releases the RenderTexture.

public Release ( ) : void
return void

RenderTexture() public method

Creates a new RenderTexture object.

public RenderTexture ( int width, int height, int depth ) : System
width int Texture width in pixels.
height int Texture height in pixels.
depth int Number of bits in depth buffer (0, 16 or 24). Note that only 24 bit depth has stencil buffer.
return System

RenderTexture() public method

Creates a new RenderTexture object.

public RenderTexture ( int width, int height, int depth, RenderTextureFormat format ) : System
width int Texture width in pixels.
height int Texture height in pixels.
depth int Number of bits in depth buffer (0, 16 or 24). Note that only 24 bit depth has stencil buffer.
format RenderTextureFormat Texture color format.
return System

RenderTexture() public method

Creates a new RenderTexture object.

public RenderTexture ( int width, int height, int depth, RenderTextureFormat format, RenderTextureReadWrite readWrite ) : System
width int Texture width in pixels.
height int Texture height in pixels.
depth int Number of bits in depth buffer (0, 16 or 24). Note that only 24 bit depth has stencil buffer.
format RenderTextureFormat Texture color format.
readWrite RenderTextureReadWrite How or if color space conversions should be done on texture read/write.
return System