public TplTextureWrapper(TPL tpl, TPL_IO.TPLImageHeader header) { TPLParent = tpl; ImageHeader = header; CanReplace = true; }
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(); } }