{"repo":"septag/dds-ktx","free":true,"listed":false,"github":"https://github.com/septag/dds-ktx","clone":"git clone https://github.com/septag/dds-ktx.git","description":"Single header \"no-allocation\" KTX/DDS file reader","language":"C","stars":139,"topics":["single-header-lib","c","gamedev","image-loading-library","khronos","dds","ktx","directx","opengl","texture"],"license":"BSD-2-Clause","category":"game-templates","readme_excerpt":"dds-ktx: Portable single header DDS/KTX reader for C/C++ @septag - Parses from memory blob. No allocations - No dependencies - Single-header for easy integration - Overridable libc functions Build Example (ctexview) ctexview is a tiny ddx-ktx viewer that can be built on linux/mac and windows. To build it just compile the single file with your compiler. Windows: Linuxx MacOS to view images just provide the image path as an argument: Used open-source libraries for app creation/graphics: Sokol Keys: - UP/DOWN: change current mipmap - Apostrophe: change text color - F: Next cube-map face - R: Toggle Red channel - G: Toggle Green channel - B: Toggle Blue channel - A: Toggle Alpha channel Usage In this example, a simple 2D texture is parsed and created using OpenGL Links - DdsKtxSharp: C# port of dds-ktx by Roman Shapiro TODO - Write KTX/DDS - Read KTX metadata. currently it just stores the offset/size to the metadata block Others - stb image - Single header library that loads images (.png, .jpg, .bmp, etc) - bimg - Extensive C++ image library NOTE : Many parts of the code is taken from bimg library. License (BSD 2-clause) -------------------------------------------------------------------------- Copyright 2018 Sepehr Taghdisian. All rights reserved. https://github.com/septag/dds-ktx Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above co","default_branch":null,"files":null,"tree":[],"storefront":"/r/septag","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/septag/dds-ktx/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}