Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ RenderTarget2D() [3/3]

Microsoft.Xna.Framework.Graphics.RenderTarget2D.RenderTarget2D ( GraphicsDevice graphicsDevice,
int width,
int height )
inline

Definition at line 80 of file RenderTarget2D.cs.

81 {
82 try
83 {
84 CreateRenderTarget(graphicsDevice, width, height, mipMap: false, SurfaceFormat.Color, DepthFormat.None, 0, RenderTargetUsage.DiscardContents);
85 return;
86 }
87 catch
88 {
89 //try-fault
90 base.Dispose(true);
91 throw;
92 }
93 }
void CreateRenderTarget(GraphicsDevice graphicsDevice, int width, int height, [MarshalAs(UnmanagedType.U1)] bool mipMap, SurfaceFormat preferredFormat, DepthFormat preferredDepthFormat, int preferredMultiSampleCount, RenderTargetUsage usage)

References Microsoft.Xna.Framework.Graphics.RenderTarget2D.CreateRenderTarget().