{"id":23193496,"url":"https://github.com/mcraiha/libktxsharp","last_synced_at":"2025-08-18T20:33:35.319Z","repository":{"id":98552579,"uuid":"135475688","full_name":"mcraiha/libktxsharp","owner":"mcraiha","description":"Managed C# library for handling KTX File Format","archived":false,"fork":false,"pushed_at":"2024-12-10T19:03:37.000Z","size":143,"stargazers_count":9,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-14T01:23:59.861Z","etag":null,"topics":["csharp","ktx","lib"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mcraiha.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-30T17:23:09.000Z","updated_at":"2024-12-10T19:03:41.000Z","dependencies_parsed_at":"2024-06-16T11:48:56.457Z","dependency_job_id":"25a04cd4-3373-4194-9cbf-abe8d5978b2a","html_url":"https://github.com/mcraiha/libktxsharp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcraiha%2Flibktxsharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcraiha%2Flibktxsharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcraiha%2Flibktxsharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcraiha%2Flibktxsharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcraiha","download_url":"https://codeload.github.com/mcraiha/libktxsharp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230276319,"owners_count":18201089,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","ktx","lib"],"created_at":"2024-12-18T13:11:40.350Z","updated_at":"2024-12-18T13:11:40.972Z","avatar_url":"https://github.com/mcraiha.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# libktxsharp\n\nC# library for handling [KTX File Format](https://www.khronos.org/opengles/sdk/tools/KTX/file_format_spec/). Only Version 1 is supported, so Version 2 is **NOT** supported.\n\n## Build status\n\n![](https://github.com/mcraiha/libktxsharp/workflows/CIBuild/badge.svg)\n\n## Nuget\n\n[https://www.nuget.org/packages/LibKTX/](https://www.nuget.org/packages/LibKTX/)\n\n## Why\n\nBecause KTX specs are public and I need something like this for my upcoming projects\n\n## How to use\n1. Get nuget, build .dll or include [lib folder](lib) in your project\n2. Use following code example\n```csharp\nusing KtxSharp;\n\nbyte[] ktxBytes = File.ReadAllBytes(\"myImage.ktx\");\n\nKtxStructure ktxStructure = null;\nusing (MemoryStream ms = new MemoryStream(ktxBytes))\n{\n\tktxStructure = KtxLoader.LoadInput(ms);\n}\n\nConsole.WriteLine(ktxStructure.header.pixelWidth);\n```\n\n## How do I build this\n\n### Requirements\n\nDotnet core 2.0 (or newer) environment\n\n### Build .dll\n\nMove to lib folder and run\n```bash\ndotnet build\n```\n\n### Build nuget\n\nMove to lib folder and run\n```bash\ndotnet pack -o out --configuration Release --include-source --include-symbols\n```\n\n## Testing\n\n### Requirements \n\n* nunit\n* NUnit3TestAdapter\n* Microsoft.NET.Test.Sdk\n\nAll requirements are restored when you run\n```bash\ndotnet restore\n```\n\n### Run tests\n\nJust call\n```bash\ndotnet test\n```\n\n## What is in\n\n* Basic KTX read functionality\n* Some test cases\n\n## What is partially in\n\n* KTX write support\n\n## What is missing\n\n* More files for testing\n* Benchmarks\n\n## License\n\nAll code is released under *\"Do whatever you want\"* license aka [Unlicense](LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcraiha%2Flibktxsharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcraiha%2Flibktxsharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcraiha%2Flibktxsharp/lists"}