terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
Microsoft.Xna.Framework.Graphics.RenderTarget2D Class Reference
+ Inheritance diagram for Microsoft.Xna.Framework.Graphics.RenderTarget2D:
+ Collaboration diagram for Microsoft.Xna.Framework.Graphics.RenderTarget2D:

Public Member Functions

 RenderTarget2D (GraphicsDevice device, int width, int height, bool mipMap, SurfaceFormat preferredFormat, DepthFormat preferredDepthFormat, int preferredMultiSampleCount, RenderTargetUsage usage, bool shared, int arraySize)
 
 RenderTarget2D (GraphicsDevice device, int width, int height, bool mipMap, SurfaceFormat preferredFormat, DepthFormat preferredDepthFormat, int preferredMultiSampleCount, RenderTargetUsage usage, bool shared)
 
 RenderTarget2D (GraphicsDevice device, int width, int height, bool mipMap, SurfaceFormat preferredFormat, DepthFormat preferredDepthFormat, int preferredMultiSampleCount, RenderTargetUsage usage)
 
 RenderTarget2D (GraphicsDevice device, int width, int height, bool mipMap, SurfaceFormat preferredFormat, DepthFormat preferredDepthFormat)
 
 RenderTarget2D (GraphicsDevice device, int width, int height)
 
void ResetLoaded ()
 
void RefreshAtlasTexture ()
 
void RefreshBatchIndex ()
 
void SaveAsPng (Stream stream, int width, int height)
 
void SetData< T > (T[] data, int start, int length)
 
delegate Texture2D TextureLoader (int data)
 
void Dispose ()
 
override string ToString ()
 

Static Public Member Functions

static int GetBatchId ()
 

Public Attributes

int UnityWidth
 
int UnityHeight
 
readonly int Width
 
readonly int Height
 
float TextureOffsetScale
 
bool SharedBatching
 
bool NonSharedHeadInsert
 
TextureAtlasEntry PackedEntry
 
TextureAtlasDB _textureAtlas
 
int BatchTextureIndex
 

Static Public Attributes

static bool ignoreLoad
 

Protected Member Functions

 RenderTarget2D (GraphicsDevice device, int width, int height, bool mipMap, SurfaceFormat format, DepthFormat depthFormat, int preferredMultiSampleCount, RenderTargetUsage usage, Texture2D.SurfaceType surfaceType)
 

Package Types

enum  SurfaceType { Texture , RenderTarget , SwapChainRenderTarget }
 

Package Functions

override void GraphicsDeviceResetting ()
 
int GetPitch (int width)
 

Static Package Functions

static int CalculateMipLevels (int width, int height=0, int depth=0)
 
static void GetSizeForLevel (int width, int height, int level, out int w, out int h)
 
static void GetSizeForLevel (int width, int height, int depth, int level, out int w, out int h, out int d)
 

Package Attributes

int ArraySize
 
float TexelWidth
 
float TexelHeight
 
SurfaceFormat _format
 
int _levelCount
 

Properties

DepthFormat DepthStencilFormat [get, set, private set]
 
int MultiSampleCount [get, set, private set]
 
RenderTargetUsage RenderTargetUsage [get, set, private set]
 
bool IsContentLost [get, set]
 
EventHandler< EventArgsContentLost [set]
 
int UnityTextureWidth [get, set]
 
int UnityTextureHeight [get, set]
 
Texture UnityBindTexture [get, set]
 
Texture2D UnityTexture [get, set]
 
Texture2D UnityAlphaTexture [get, set]
 
Texture2D UnityPalTexture [get, set]
 
Rectangle Bounds [get, set]
 
int SortingKey [get, set]
 
SurfaceFormat Format [get, set]
 
int LevelCount [get, set]
 
EventHandler< EventArgsDisposing [set]
 
GraphicsDevice GraphicsDevice [get, set]
 
string Name [get, set]
 
object Tag [get, set]
 

Private Member Functions

bool SuppressEventHandlerWarningsUntilEventsAreProperlyImplemented ()
 
void LoadCallback (Texture2D tex0, Texture2D tex1, Texture2D tex2, int page)
 
void LoadSourceTexture ()
 
void CreateEmptyTexture (object data)
 

Static Private Member Functions

static void ConvertToABGR (int pixelHeight, int pixelWidth, int[] pixels)
 

Private Attributes

DepthFormat< DepthStencilFormatk__BackingField
 
int< MultiSampleCountk__BackingField
 
RenderTargetUsage< RenderTargetUsagek__BackingField
 
bool loadRequested
 
bool _textureLoaded
 
RenderTexture _unityRenderTexture
 
Texture2D _unityTexture
 
Texture2D _unityAlphaTexture
 
Texture2D _unityPalTexture
 
readonly int _batchTextureIndex
 
string _sourceLoadAsset
 
readonly int _sortingKey
 
GraphicsDevice graphicsDevice
 

Static Private Attributes

static int _nextTextureId
 
static int _lastSortingKey
 

Detailed Description

Definition at line 10 of file RenderTarget2D.cs.


The documentation for this class was generated from the following file: