コード例 #1
0
ファイル: TPL.cs プロジェクト: week9/Switch-Toolbox
            public TplTextureWrapper(TPL tpl, TPL_IO.TPLImageHeader header)
            {
                TPLParent   = tpl;
                ImageHeader = header;

                CanReplace = true;
            }
コード例 #2
0
ファイル: TPL.cs プロジェクト: week9/Switch-Toolbox
            private void ApplySettings(GameCubeTextureImporterSettings settings)
            {
                if (ImageHeader == null)
                {
                    ImageHeader = new TPL_IO.ImageHeaderV2();
                }

                this.ImageData  = settings.DataBlockOutput[0];
                this.Width      = settings.TexWidth;
                this.Height     = settings.TexHeight;
                this.Format     = settings.GenericFormat;
                this.MipCount   = settings.MipCount;
                this.Depth      = 1; //Always 1
                this.ArrayCount = 1;
                UpdateHeader();

                if (this.RenderableTex != null)
                {
                    this.LoadOpenGLTexture();
                }
            }