fpopov thanks

This commit is contained in:
bird_egop
2026-05-09 20:36:43 +03:00
parent d73a6dde70
commit eb458ad9a8
43 changed files with 1562 additions and 1233 deletions
+5 -1
View File
@@ -13,6 +13,7 @@ public class TexmExplorerViewModel
public string? Path { get; set; }
public List<OpenGlTexture> GlTextures { get; set; } = [];
public List<byte[]> RgbaBytesByMipmap { get; set; } = [];
private bool _glTexturesDirty = false;
public bool IsWhiteBgEnabled;
@@ -48,11 +49,14 @@ public class TexmExplorerViewModel
}
GlTextures.Clear();
RgbaBytesByMipmap.Clear();
for (var i = 0; i < TexmFile!.Header.MipmapCount; i++)
for (var i = 0; i < TexmFile.Header.MipmapCount; i++)
{
var bytes = TexmFile.GetRgba32BytesFromMipmap(i, out var width, out var height);
RgbaBytesByMipmap.Add(bytes);
var glTexture = new OpenGlTexture(
gl,
width,