Skip to content

kyapp69/libktxsharp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libktxsharp

C# library for handling KTX File Format

Build status

Why

Because KTX specs are public and I need something like this for my upcoming projects

How to use

  1. Build .dll or include lib folder in your project
  2. 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);

How do I build this

Requirements

Dotnet core 2.0 (or newer) environment

Build .dll

Move to lib folder and run

dotnet build

Build nuget

TBA

Testing

Requirements

  • nunit
  • NUnit3TestAdapter
  • Microsoft.NET.Test.Sdk

All requirements are restored when you run

dotnet restore

Run tests

Just call

dotnet test

What is in

  • Basic KTX read functionality
  • Some test cases

What is partially in

  • KTX write support

What is missing

  • Nuget
  • More files for testing
  • Benchmarks

License

All code is released under "Do whatever you want" license aka Unlicense

About

C# library for handling KTX File Format

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 99.4%
  • PowerShell 0.6%