C# library for handling KTX File Format
Because KTX specs are public and I need something like this for my upcoming projects
- Build .dll or include lib folder in your project
- Use following code example
byte[] ktxBytes = File.ReadAllBytes("myImage.ktx");
KtxStructure ktxStructure = null;
using (MemoryStream ms = new MemoryStream(ktxBytes))
{
ktxStructure = KtxLoader.LoadInput(ms);
}
Console.WriteLine(ktxStructure.header.pixelWidth);
Dotnet core 2.0 (or newer) environment
Move to lib folder and run
dotnet build
TBA
- nunit
- NUnit3TestAdapter
- Microsoft.NET.Test.Sdk
All requirements are restored when you run
dotnet restore
Just call
dotnet test
- Basic KTX read functionality
- Some test cases
- KTX write support
- Nuget
- More files for testing
- Benchmarks
All code is released under "Do whatever you want" license aka Unlicense