3#include "file-format-objects/header.hpp"
51 explicit Vtf(std::shared_ptr<std::vector<std::byte>> data);
70 [[nodiscard]] uint8_t
getFaces()
const;
112 const uint8_t mipLevel = 0,
const uint16_t frame = 0,
const uint8_t face = 0,
const uint16_t depth = 0
138 std::shared_ptr<std::vector<std::byte>> data;
139 std::span<const std::byte> highResImageData;
140 std::span<const std::byte> lowResImageData;
LowResImageExtent getLowResImageExtent() const
Definition: vtf.cpp:260
ImageFormat getHighResImageFormat() const
Definition: vtf.cpp:184
uint16_t getFrames() const
Definition: vtf.cpp:208
TextureFlags getFlags() const
Definition: vtf.cpp:216
std::span< const std::byte > getHighResImageData() const
Definition: vtf.cpp:220
uint8_t getMipLevels() const
Definition: vtf.cpp:204
std::span< const std::byte > getLowResImageData() const
Definition: vtf.cpp:267
HighResImageExtent getHighResImageExtent(uint8_t mipLevel=0) const
Definition: vtf.cpp:188
uint8_t getFaces() const
Definition: vtf.cpp:196
size_t getImageSliceOffset(const uint8_t mipLevel=0, const uint16_t frame=0, const uint8_t face=0, const uint16_t depth=0) const
Definition: vtf.cpp:224
uint16_t getFirstFrame() const
Definition: vtf.cpp:212
ImageFormat getLowResImageFormat() const
Definition: vtf.cpp:256
Definition: VTFParser.hpp:6
TextureFlags
Definition: enums.hpp:44
ImageFormat
Definition: enums.hpp:10
uint16_t depth
Definition: vtf.hpp:44
uint16_t height
Definition: vtf.hpp:40
uint16_t width
Definition: vtf.hpp:36
uint8_t width
Definition: vtf.hpp:22
uint8_t height
Definition: vtf.hpp:26