mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2025-06-18 23:59:46 +03:00
fix color ordering in 4444
fix blur when x2 scale add TFNT texture open support
This commit is contained in:
@ -59,9 +59,28 @@ namespace NResUI.ImGuiUI
|
||||
}
|
||||
}
|
||||
|
||||
if (ImGui.MenuItem("Open TFNT TEXM"))
|
||||
{
|
||||
var result = Dialog.FileOpen();
|
||||
|
||||
if (result.IsOk)
|
||||
{
|
||||
var path = result.Path;
|
||||
|
||||
using var fs = new FileStream(path, FileMode.Open);
|
||||
|
||||
fs.Seek(4116, SeekOrigin.Begin);
|
||||
|
||||
var parseResult = TexmParser.ReadFromStream(fs, path);
|
||||
|
||||
_texmExplorerViewModel.SetParseResult(parseResult, path);
|
||||
Console.WriteLine("Read TEXM");
|
||||
}
|
||||
}
|
||||
|
||||
if (_nResExplorerViewModel.HasFile)
|
||||
{
|
||||
if (ImGui.MenuItem("Экспортировать"))
|
||||
if (ImGui.MenuItem("Экспортировать NRes"))
|
||||
{
|
||||
var result = Dialog.FolderPicker();
|
||||
|
||||
|
@ -67,6 +67,9 @@ namespace NResUI
|
||||
|
||||
SetWrap(TextureCoordinate.S, TextureWrapMode.Repeat);
|
||||
SetWrap(TextureCoordinate.T, TextureWrapMode.Repeat);
|
||||
|
||||
SetMinFilter(TextureMinFilter.Nearest);
|
||||
SetMagFilter(TextureMagFilter.Nearest);
|
||||
|
||||
_gl.TexParameterI(GLEnum.Texture2D, TextureParameterName.TextureMaxLevel, MipmapLevels - 1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user