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

◆ RenderTargetCube() [2/2]

Microsoft.Xna.Framework.Graphics.RenderTargetCube.RenderTargetCube ( GraphicsDevice graphicsDevice,
int size,
[MarshalAs(UnmanagedType.U1)] bool mipMap,
SurfaceFormat preferredFormat,
DepthFormat preferredDepthFormat )
inline

Definition at line 65 of file RenderTargetCube.cs.

66 {
67 try
68 {
69 CreateRenderTarget(graphicsDevice, size, mipMap, preferredFormat, preferredDepthFormat, 0, RenderTargetUsage.DiscardContents);
70 return;
71 }
72 catch
73 {
74 //try-fault
75 base.Dispose(true);
76 throw;
77 }
78 }
void CreateRenderTarget(GraphicsDevice graphicsDevice, int size, [MarshalAs(UnmanagedType.U1)] bool mipMap, SurfaceFormat preferredFormat, DepthFormat preferredDepthFormat, int preferredMultiSampleCount, RenderTargetUsage usage)

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