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

◆ RecreateAndPopulateObject() [1/2]

unsafe override int Microsoft.Xna.Framework.Graphics.RenderTarget2D.RecreateAndPopulateObject ( )
inlinepackagevirtual

Reimplemented from Microsoft.Xna.Framework.Graphics.Texture2D.

Definition at line 123 of file RenderTarget2D.cs.

124 {
125 if (pComPtr != null)
126 {
127 return -2147467259;
128 }
129 int num = ((_levelCount > 1) ? 1 : 0);
130 CreateTexture(_parent, _width, _height, (byte)num != 0, 1u, (_D3DPOOL)0, _format);
133 return 0;
134 }
unsafe void CreateSurfaces(GraphicsDevice graphicsDevice)
unsafe IDirect3DTexture9 * pComPtr
Definition Texture2D.cs:22
unsafe void CreateTexture(GraphicsDevice graphicsDevice, int width, int height, [MarshalAs(UnmanagedType.U1)] bool mipMap, uint usage, _D3DPOOL pool, SurfaceFormat format)
Definition Texture2D.cs:609

References Microsoft.Xna.Framework.Graphics.Texture._format, Microsoft.Xna.Framework.Graphics.Texture2D._height, Microsoft.Xna.Framework.Graphics.Texture._levelCount, Microsoft.Xna.Framework.Graphics.GraphicsResource._parent, Microsoft.Xna.Framework.Graphics.Texture2D._width, Microsoft.Xna.Framework.Graphics.RenderTargetHelper.CreateSurfaces(), Microsoft.Xna.Framework.Graphics.Texture2D.CreateTexture(), Microsoft.Xna.Framework.Graphics.RenderTarget2D.helper, Microsoft.Xna.Framework.Graphics.Texture2D.pComPtr, and Microsoft.Xna.Framework.Graphics.Texture.renderTargetContentsDirty.

Referenced by Microsoft.Xna.Framework.Graphics.RenderTarget2D.RecreateAndPopulateObject().