Axiom.RenderSystems.DirectX9.D3DTexture.SetFinalAttributes C# (CSharp) Метод

SetFinalAttributes() приватный метод

private SetFinalAttributes ( int width, int height, int depth, PixelFormat format ) : void
width int
height int
depth int
format PixelFormat
Результат void
		private void SetFinalAttributes( int width, int height, int depth, PixelFormat format )
		{
			// set target texture attributes
			this.Height = height;
			this.Width = width;
			this.Depth = depth;
			this.Format = format;

			// Update size (the final size, not including temp space)
			// this is needed in Resource class
			Size = calculateSize();

			// say to the world what we are doing
			if ( Width != SrcWidth || Height != SrcHeight )
			{
				LogManager.Instance.Write( "D3D9 : ***** Dimensions altered by the render system" );
				LogManager.Instance.Write( "D3D9 : ***** Source image dimensions : {0}x{1}", SrcWidth, SrcHeight );
				LogManager.Instance.Write( "D3D9 : ***** Texture dimensions :  {0}x{1}", Width, Height );
			}

			this.CreateSurfaceList();
		}