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

◆ RecreateAndPopulateObject() [1/2]

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

Reimplemented from Microsoft.Xna.Framework.Graphics.TextureCube.

Definition at line 107 of file RenderTargetCube.cs.

108 {
109 if (pComPtr != null)
110 {
111 return -2147467259;
112 }
113 int num = ((_levelCount > 1) ? 1 : 0);
114 CreateTexture(_parent, _size, (byte)num != 0, 1u, (_D3DPOOL)0, _format);
116 return 0;
117 }
unsafe void CreateSurfaces(GraphicsDevice graphicsDevice)
unsafe void CreateTexture(GraphicsDevice graphicsDevice, int size, [MarshalAs(UnmanagedType.U1)] bool mipMap, uint usage, _D3DPOOL pool, SurfaceFormat format)
unsafe IDirect3DCubeTexture9 * pComPtr

References Microsoft.Xna.Framework.Graphics.Texture._format, Microsoft.Xna.Framework.Graphics.Texture._levelCount, Microsoft.Xna.Framework.Graphics.GraphicsResource._parent, Microsoft.Xna.Framework.Graphics.TextureCube._size, Microsoft.Xna.Framework.Graphics.RenderTargetHelper.CreateSurfaces(), Microsoft.Xna.Framework.Graphics.TextureCube.CreateTexture(), Microsoft.Xna.Framework.Graphics.RenderTargetCube.helper, and Microsoft.Xna.Framework.Graphics.TextureCube.pComPtr.

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