mirror of
https://github.com/BinomialLLC/basis_universal.git
synced 2026-10-24 18:00:57 +00:00
Demo transcodes to various formats (tested only PVRTC, S3TC and uncompressed for now). Added docs.
29 lines
725 B
C++
29 lines
725 B
C++
/**
|
|
* Basis Universal single file library. Generated using:
|
|
* \code
|
|
* ./combine.sh -r ../../transcoder -o basisutranslib.cpp basisutranslib-in.cpp
|
|
* \endcode
|
|
*
|
|
* \todo -Wunused-parameter errors when removing BASISD_SUPPORT_ETC2_EAC_A8
|
|
* \todo enable and test BASISD_SUPPORT_ASTC in browsers
|
|
* \todo BASISD_SUPPORT_DXT5A needs enabling for BC3?
|
|
*/
|
|
|
|
/*
|
|
* Build options for known platforms.
|
|
*/
|
|
#ifdef __APPLE__
|
|
#include <TargetConditionals.h>
|
|
#endif
|
|
#if TARGET_OS_IPHONE
|
|
#define BASISD_SUPPORT_DXT1 0
|
|
#define BASISD_SUPPORT_DXT5A 0
|
|
#endif
|
|
#if TARGET_OS_IPHONE || defined(__EMSCRIPTEN__)
|
|
#define BASISD_SUPPORT_BC7 0
|
|
#define BASISD_SUPPORT_ASTC 0
|
|
#define BASISD_SUPPORT_ATC 0
|
|
#endif
|
|
|
|
#include "basisu_transcoder.cpp"
|