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

◆ RenderTarget2D() [1/3]

Microsoft.Xna.Framework.Graphics.RenderTarget2D.RenderTarget2D ( GraphicsDevice graphicsDevice,
int width,
int height,
[MarshalAs(UnmanagedType.U1)] bool mipMap,
SurfaceFormat preferredFormat,
DepthFormat preferredDepthFormat,
int preferredMultiSampleCount,
RenderTargetUsage usage )
inline

Definition at line 50 of file RenderTarget2D.cs.

51 {
52 try
53 {
54 CreateRenderTarget(graphicsDevice, width, height, mipMap, preferredFormat, preferredDepthFormat, preferredMultiSampleCount, usage);
55 return;
56 }
57 catch
58 {
59 //try-fault
60 base.Dispose(true);
61 throw;
62 }
63 }
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().