From 6c0e9d5987b8391d2bd414cb743b70834e2b0462 Mon Sep 17 00:00:00 2001 From: DarkShadow Date: Wed, 9 Oct 2024 01:39:12 +0300 Subject: [PATCH] Do some cleanup --- .../TelltaleTextureTool/App.axaml | 1 - .../TelltaleTextureTool/App.axaml.cs | 2 +- .../Common/ByteFunctions.cs | 118 +-- .../TelltaleTextureTool/Converter.cs | 211 +---- .../TelltaleTextureTool/GUI/IO/Logger.cs | 4 +- .../GUI/IO/WorkingDirectory.cs | 5 +- .../GUI/ImageAdvancedOptions.cs | 15 +- .../TelltaleTextureTool/GUI/ImageData.cs | 38 +- .../GUI/Views/MainView.axaml | 26 +- .../GUI/Views/MainView.axaml.cs | 1 - .../GUI/Views/MainWindow.axaml.cs | 3 +- .../DDS/{DDS_HELPER.cs => DDSHelper.cs} | 61 +- ...DDS_DirectXTexNet.cs => TextureManager.cs} | 169 ++-- .../Graphics/KTX2/KTX2_Bindings.cs | 4 - .../Graphics/KTX2/KTX2_HELPER.cs | 888 +++++++++--------- .../Graphics/PVR/PVRDecoder.cs | 2 +- .../Main/D3DTXVersionEnums.cs | 90 +- .../TelltaleTextureTool/Main/D3DTX_Master.cs | 43 +- .../TelltaleTextureTool/Main/DDS_Master.cs | 14 +- .../TelltaleTextureTool/Main/KTX2_Master.cs | 372 ++++---- .../FileTypes/D3DTX/Enums/T3SurfaceGamma.cs | 6 +- .../Telltale/FileTypes/D3DTX/ID3DTX.cs | 2 +- .../FileTypes/D3DTX/Versions/D3DTX_V3.cs | 2 +- .../FileTypes/D3DTX/Versions/D3DTX_V4.cs | 2 +- .../FileTypes/D3DTX/Versions/D3DTX_V5.cs | 2 +- .../FileTypes/D3DTX/Versions/D3DTX_V6.cs | 3 +- .../FileTypes/D3DTX/Versions/D3DTX_V7.cs | 3 +- .../FileTypes/D3DTX/Versions/D3DTX_V8.cs | 2 +- .../FileTypes/D3DTX/Versions/D3DTX_V9.cs | 2 +- .../FileTypes/D3DTX/Versions/Legacy_D3DTX.cs | 2 +- .../Telltale/Structs/T3SamplerStateBlock.cs | 5 - .../Telltale/Structs/TelltalePixelData.cs | 19 + 32 files changed, 951 insertions(+), 1166 deletions(-) rename TelltaleTextureTool/TelltaleTextureTool/Graphics/DDS/{DDS_HELPER.cs => DDSHelper.cs} (92%) rename TelltaleTextureTool/TelltaleTextureTool/Graphics/DDS/{DDS_DirectXTexNet.cs => TextureManager.cs} (88%) diff --git a/TelltaleTextureTool/TelltaleTextureTool/App.axaml b/TelltaleTextureTool/TelltaleTextureTool/App.axaml index 3c5e1c4..22c1b7e 100644 --- a/TelltaleTextureTool/TelltaleTextureTool/App.axaml +++ b/TelltaleTextureTool/TelltaleTextureTool/App.axaml @@ -16,7 +16,6 @@ -