Reactor.RTexture.BuildInfo C# (CSharp) Method

BuildInfo() private method

private BuildInfo ( ) : void
return void
        internal void BuildInfo()
        {
            if (iType == CONST_RTEXTURE_TYPE.Texture2D)
            {
                Texture2D t = (Texture2D)_Texture;
                Height = t.Height;
                Width = t.Width;
                LevelCount = t.LevelCount;
            }
            else if (iType == CONST_RTEXTURE_TYPE.Texture3D)
            {
                Texture3D t = (Texture3D)_Texture;
                Height = t.Height;
                Width = t.Width;
                LevelCount = t.LevelCount;
            }
            else
            {
                TextureCube t = (TextureCube)_Texture;
                LevelCount = t.LevelCount;
                Height = -1;
                Width = -1;
            }
        }