![]() |
SourcePP
Several modern C++20 libraries for sanely parsing Valve's formats.
|
#include <TTX.h>

Public Member Functions | |
| TTX (VTF &&vtf_) | |
| TTX (std::span< const std::byte > tthData, std::span< const std::byte > ttzData={}) | |
| TTX (const std::filesystem::path &tthPath, const std::filesystem::path &ttzPath={}) | |
| operator bool () const | |
| uint8_t | getMajorVersion () const |
| uint8_t | getMinorVersion () const |
| void | setVersion (uint8_t newMajorVersion, uint8_t newMinorVersion) |
| void | setMajorVersion (uint8_t newMajorVersion) |
| void | setMinorVersion (uint8_t newMinorVersion) |
| uint8_t | getAspectRatioType () const |
| void | setAspectRatioType (uint8_t newAspectRatioType) |
| const std::vector< uint64_t > & | getMipFlags () const |
| std::vector< uint64_t > & | getMipFlags () |
| const VTF & | getVTF () const |
| VTF & | getVTF () |
| int16_t | getCompressionLevel () const |
| void | setCompressionLevel (int16_t newCompressionLevel) |
| std::pair< std::vector< std::byte >, std::vector< std::byte > > | bake () const |
| bool | bake (const std::filesystem::path &tthPath, const std::filesystem::path &ttzPath) const |
Protected Attributes | |
| bool | opened = false |
| int16_t | compressionLevel = -1 |
| VTF | vtf |
| uint8_t | majorVersion = 1 |
| uint8_t | minorVersion = 0 |
| uint8_t | aspectRatioType {} |
| std::vector< uint64_t > | mipFlags |
|
explicit |
|
explicit |
|
nodiscard |
| bool TTX::bake | ( | const std::filesystem::path & | tthPath, |
| const std::filesystem::path & | ttzPath ) const |
|
nodiscard |
| void TTX::setCompressionLevel | ( | int16_t | newCompressionLevel | ) |
| void TTX::setVersion | ( | uint8_t | newMajorVersion, |
| uint8_t | newMinorVersion ) |