mirror of
https://github.com/BinomialLLC/basis_universal.git
synced 2026-09-21 01:44:31 +00:00
Added 'simple.cpp' which does the bare mimimum to confirm the amalgamation worked (compiled and run after the combine step). Split the embedded .basis files from the Emscripten test so they can be shared. Fixed an error in the creation script (which caused it to always fail). Corrected the syntax for the unused functions (tested with older, less forgiving compilers).
Single File Basis Universal Examples
The examples #include the generated basisu_transcoder.cpp directly but work equally as well when including basisu_transcoder.h and compiling the amalgamated source separately.
emscripten.cpp is a bare-bones Emscripten compiled WebGL demo picking the best transcoder format for the sample texture (see the original PNG image).
The example files in this directory are released under a Creative Commons Zero license.