SourcePP
Several modern C++20 libraries for sanely parsing Valve's formats.
Loading...
Searching...
No Matches
vtfpp::VTF Class Reference

#include <VTF.h>

Collaboration diagram for vtfpp::VTF:

Classes

struct  CreationOptions
 

Public Types

enum  Flags : uint32_t {
  FLAG_V0_POINT_SAMPLE = 1u << 0 , FLAG_V0_TRILINEAR = 1u << 1 , FLAG_V0_CLAMP_S = 1u << 2 , FLAG_V0_CLAMP_T = 1u << 3 ,
  FLAG_V0_ANISOTROPIC = 1u << 4 , FLAG_V0_VTEX_HINT_DXT5 = 1u << 5 , FLAG_V0_VTEX_NO_COMPRESS = 1u << 6 , FLAG_V0_NORMAL = 1u << 7 ,
  FLAG_V0_NO_MIP = 1u << 8 , FLAG_V0_NO_LOD = 1u << 9 , FLAG_V0_LOAD_SMALL_MIPS = 1u << 10 , FLAG_V0_PROCEDURAL = 1u << 11 ,
  FLAG_V0_ONE_BIT_ALPHA = 1u << 12 , FLAG_V0_MULTI_BIT_ALPHA = 1u << 13 , FLAG_V0_ENVMAP = 1u << 14 , FLAG_MASK_V0 = FLAG_V0_POINT_SAMPLE | FLAG_V0_TRILINEAR | FLAG_V0_CLAMP_S | FLAG_V0_CLAMP_T | FLAG_V0_ANISOTROPIC | FLAG_V0_VTEX_HINT_DXT5 | FLAG_V0_VTEX_NO_COMPRESS | FLAG_V0_NORMAL | FLAG_V0_NO_MIP | FLAG_V0_NO_LOD | FLAG_V0_LOAD_SMALL_MIPS | FLAG_V0_PROCEDURAL | FLAG_V0_ONE_BIT_ALPHA | FLAG_V0_MULTI_BIT_ALPHA | FLAG_V0_ENVMAP ,
  FLAG_MASK_V0_VTEX = FLAG_V0_VTEX_HINT_DXT5 | FLAG_V0_VTEX_NO_COMPRESS , FLAG_V1_RENDERTARGET = 1u << 15 , FLAG_V1_DEPTH_RENDERTARGET = 1u << 16 , FLAG_V1_NO_DEBUG_OVERRIDE = 1u << 17 ,
  FLAG_V1_SINGLE_COPY = 1u << 18 , FLAG_V1_VTEX_ONE_OVER_MIP_LEVEL_IN_ALPHA = 1u << 19 , FLAG_V1_VTEX_PREMULTIPLY_COLOR_BY_ONE_OVER_MIP_LEVEL = 1u << 20 , FLAG_V1_VTEX_CONVERT_NORMAL_TO_DUDV = 1u << 21 ,
  FLAG_MASK_V1 = FLAG_V1_RENDERTARGET | FLAG_V1_DEPTH_RENDERTARGET | FLAG_V1_NO_DEBUG_OVERRIDE | FLAG_V1_SINGLE_COPY | FLAG_V1_VTEX_ONE_OVER_MIP_LEVEL_IN_ALPHA | FLAG_V1_VTEX_PREMULTIPLY_COLOR_BY_ONE_OVER_MIP_LEVEL | FLAG_V1_VTEX_CONVERT_NORMAL_TO_DUDV , FLAG_MASK_V1_VTEX = FLAG_V1_VTEX_ONE_OVER_MIP_LEVEL_IN_ALPHA | FLAG_V1_VTEX_PREMULTIPLY_COLOR_BY_ONE_OVER_MIP_LEVEL | FLAG_V1_VTEX_CONVERT_NORMAL_TO_DUDV , FLAG_V2_VTEX_ALPHA_TEST_MIP_GENERATION = 1u << 22 , FLAG_V2_NO_DEPTH_BUFFER = 1u << 23 ,
  FLAG_V2_VTEX_NICE_FILTERED = 1u << 24 , FLAG_V2_CLAMP_U = 1u << 25 , FLAG_MASK_V2 = FLAG_V2_VTEX_ALPHA_TEST_MIP_GENERATION | FLAG_V2_NO_DEPTH_BUFFER | FLAG_V2_VTEX_NICE_FILTERED | FLAG_V2_CLAMP_U , FLAG_MASK_V2_VTEX = FLAG_V2_VTEX_ALPHA_TEST_MIP_GENERATION | FLAG_V2_VTEX_NICE_FILTERED ,
  FLAG_XBOX_VTEX_PRESWIZZLED = 1u << 26 , FLAG_XBOX_CACHEABLE = 1u << 27 , FLAG_XBOX_UNFILTERABLE_OK = 1u << 28 , FLAG_MASK_XBOX = FLAG_XBOX_VTEX_PRESWIZZLED | FLAG_XBOX_CACHEABLE | FLAG_XBOX_UNFILTERABLE_OK ,
  FLAG_MASK_XBOX_VTEX = FLAG_XBOX_VTEX_PRESWIZZLED , FLAG_V3_LOAD_ALL_MIPS = 1u << 10 , FLAG_V3_VERTEX_TEXTURE = 1u << 26 , FLAG_V3_SSBUMP = 1u << 27 ,
  FLAG_V3_BORDER = 1u << 29 , FLAG_MASK_V3 = FLAG_V3_LOAD_ALL_MIPS | FLAG_V3_VERTEX_TEXTURE | FLAG_V3_SSBUMP | FLAG_V3_BORDER , FLAG_V4_SRGB = 1u << 6 , FLAG_MASK_V4 = FLAG_V4_SRGB ,
  FLAG_V4_TF2_STAGING_MEMORY = 1u << 19 , FLAG_V4_TF2_IMMEDIATE_CLEANUP = 1u << 20 , FLAG_V4_TF2_IGNORE_PICMIP = 1u << 21 , FLAG_V4_TF2_STREAMABLE_COARSE = 1u << 30 ,
  FLAG_V4_TF2_STREAMABLE_FINE = 1u << 31 , FLAG_MASK_V4_TF2 = FLAG_V4_TF2_STAGING_MEMORY | FLAG_V4_TF2_IMMEDIATE_CLEANUP | FLAG_V4_TF2_IGNORE_PICMIP | FLAG_V4_TF2_STREAMABLE_COARSE | FLAG_V4_TF2_STREAMABLE_FINE , FLAG_V5_PWL_CORRECTED = 1u << 6 , FLAG_V5_SRGB = 1u << 19 ,
  FLAG_V5_DEFAULT_POOL = 1u << 20 , FLAG_V5_LOAD_MOST_MIPS = 1u << 28 , FLAG_MASK_V5 = FLAG_V5_PWL_CORRECTED | FLAG_V5_SRGB | FLAG_V5_DEFAULT_POOL | FLAG_V5_LOAD_MOST_MIPS , FLAG_V5_CSGO_COMBINED = 1u << 21 ,
  FLAG_V5_CSGO_ASYNC_DOWNLOAD = 1u << 22 , FLAG_V5_CSGO_SKIP_INITIAL_DOWNLOAD = 1u << 24 , FLAG_V5_CSGO_YCOCG = 1u << 30 , FLAG_V5_CSGO_ASYNC_SKIP_INITIAL_LOW_RES = 1u << 31 ,
  FLAG_MASK_V5_CSGO = FLAG_V5_CSGO_COMBINED | FLAG_V5_CSGO_ASYNC_DOWNLOAD | FLAG_V5_CSGO_SKIP_INITIAL_DOWNLOAD | FLAG_V5_CSGO_YCOCG | FLAG_V5_CSGO_ASYNC_SKIP_INITIAL_LOW_RES , FLAG_MASK_INTERNAL = FLAG_V0_NO_MIP | FLAG_V0_ENVMAP
}
 
enum  Platform : uint32_t {
  PLATFORM_UNKNOWN = 0x000 , PLATFORM_PC = 0x007 , PLATFORM_XBOX = 0x005 , PLATFORM_X360 = 0x360 ,
  PLATFORM_PS3_ORANGEBOX = 0x333 , PLATFORM_PS3_PORTAL2 = 0x334
}
 

Public Member Functions

 VTF ()
 
 VTF (std::vector< std::byte > &&vtfData, bool parseHeaderOnly=false)
 
 VTF (std::span< const std::byte > vtfData, bool parseHeaderOnly=false)
 
 VTF (const std::string &vtfPath, bool parseHeaderOnly=false)
 
 VTF (const VTF &other)
 
VTFoperator= (const VTF &other)
 
 VTF (VTF &&) noexcept=default
 
VTFoperator= (VTF &&) noexcept=default
 
 operator bool () const
 
Platform getPlatform () const
 
void setPlatform (Platform newPlatform)
 
uint32_t getVersion () const
 
void setVersion (uint32_t newVersion)
 
ImageConversion::ResizeMethod getImageWidthResizeMethod () const
 
ImageConversion::ResizeMethod getImageHeightResizeMethod () const
 
void setImageResizeMethods (ImageConversion::ResizeMethod imageWidthResizeMethod_, ImageConversion::ResizeMethod imageHeightResizeMethod_)
 
void setImageWidthResizeMethod (ImageConversion::ResizeMethod imageWidthResizeMethod_)
 
void setImageHeightResizeMethod (ImageConversion::ResizeMethod imageHeightResizeMethod_)
 
uint16_t getWidth (uint8_t mip=0) const
 
uint16_t getHeight (uint8_t mip=0) const
 
void setSize (uint16_t newWidth, uint16_t newHeight, ImageConversion::ResizeFilter filter)
 
uint32_t getFlags () const
 
void setFlags (uint32_t flags_)
 
void addFlags (uint32_t flags_)
 
void removeFlags (uint32_t flags_)
 
bool isSRGB () const
 
void setSRGB (bool srgb)
 
void computeTransparencyFlags ()
 
ImageFormat getFormat () const
 
void setFormat (ImageFormat newFormat, ImageConversion::ResizeFilter filter=ImageConversion::ResizeFilter::DEFAULT, float quality=ImageConversion::DEFAULT_COMPRESSED_QUALITY)
 
uint8_t getMipCount () const
 
bool setMipCount (uint8_t newMipCount)
 
bool setRecommendedMipCount ()
 
void computeMips (ImageConversion::ResizeFilter filter=ImageConversion::ResizeFilter::DEFAULT)
 
uint16_t getFrameCount () const
 
bool setFrameCount (uint16_t newFrameCount)
 
uint8_t getFaceCount () const
 
bool setFaceCount (bool isCubeMap)
 
uint16_t getDepth () const
 
bool setDepth (uint16_t newDepth)
 
bool setFrameFaceAndDepth (uint16_t newFrameCount, bool isCubeMap, uint16_t newDepth=1)
 
uint16_t getStartFrame () const
 
void setStartFrame (uint16_t newStartFrame)
 
sourcepp::math::Vec3f getReflectivity () const
 
void setReflectivity (sourcepp::math::Vec3f newReflectivity)
 
void computeReflectivity ()
 
float getBumpMapScale () const
 
void setBumpMapScale (float newBumpMapScale)
 
ImageFormat getThumbnailFormat () const
 
uint8_t getThumbnailWidth () const
 
uint8_t getThumbnailHeight () const
 
uint8_t getFallbackWidth () const
 
uint8_t getFallbackHeight () const
 
uint8_t getFallbackMipCount () const
 
const std::vector< Resource > & getResources () const
 
const ResourcegetResource (Resource::Type type) const
 
std::vector< std::byte > getPaletteResourceFrame (uint16_t frame=0) const
 
std::vector< std::byte > getParticleSheetFrameDataRaw (uint16_t &spriteWidth, uint16_t &spriteHeight, uint32_t shtSequenceID, uint32_t shtFrame, uint8_t shtBounds=0, uint8_t mip=0, uint16_t frame=0, uint8_t face=0, uint16_t slice=0) const
 This is a convenience function. You're best off uploading the bounds to the GPU and scaling the UV there if trying to render a particle.
 
std::vector< std::byte > getParticleSheetFrameDataAs (ImageFormat newFormat, uint16_t &spriteWidth, uint16_t &spriteHeight, uint32_t shtSequenceID, uint32_t shtFrame, uint8_t shtBounds=0, uint8_t mip=0, uint16_t frame=0, uint8_t face=0, uint16_t slice=0) const
 This is a convenience function. You're best off uploading the bounds to the GPU and scaling the UV there if trying to render a particle.
 
std::vector< std::byte > getParticleSheetFrameDataAsRGBA8888 (uint16_t &spriteWidth, uint16_t &spriteHeight, uint32_t shtSequenceID, uint32_t shtFrame, uint8_t shtBounds=0, uint8_t mip=0, uint16_t frame=0, uint8_t face=0, uint16_t slice=0) const
 This is a convenience function. You're best off uploading the bounds to the GPU and scaling the UV there if trying to render a particle.
 
void setParticleSheetResource (const SHT &value)
 
void removeParticleSheetResource ()
 
void setCRCResource (uint32_t value)
 
void removeCRCResource ()
 
void setLODResource (uint8_t u, uint8_t v, uint8_t u360=0, uint8_t v360=0)
 
void removeLODResource ()
 
void setExtendedFlagsResource (uint32_t value)
 
void removeExtendedFlagsResource ()
 
void setKeyValuesDataResource (const std::string &value)
 
void removeKeyValuesDataResource ()
 
void setHotspotDataResource (const HOT &value)
 
void removeHotspotDataResource ()
 
int16_t getCompressionLevel () const
 
void setCompressionLevel (int16_t newCompressionLevel)
 
CompressionMethod getCompressionMethod () const
 
void setCompressionMethod (CompressionMethod newCompressionMethod)
 
bool hasImageData () const
 
std::span< const std::byte > getImageDataRaw (uint8_t mip=0, uint16_t frame=0, uint8_t face=0, uint16_t slice=0) const
 
std::vector< std::byte > getImageDataAs (ImageFormat newFormat, uint8_t mip=0, uint16_t frame=0, uint8_t face=0, uint16_t slice=0) const
 
std::vector< std::byte > getImageDataAsRGBA8888 (uint8_t mip=0, uint16_t frame=0, uint8_t face=0, uint16_t slice=0) const
 
bool setImage (std::span< const std::byte > imageData_, ImageFormat format_, uint16_t width_, uint16_t height_, ImageConversion::ResizeFilter filter=ImageConversion::ResizeFilter::DEFAULT, uint8_t mip=0, uint16_t frame=0, uint8_t face=0, uint16_t slice=0, float quality=ImageConversion::DEFAULT_COMPRESSED_QUALITY)
 
bool setImage (const std::string &imagePath, ImageConversion::ResizeFilter filter=ImageConversion::ResizeFilter::DEFAULT, uint8_t mip=0, uint16_t frame=0, uint8_t face=0, uint16_t slice=0, float quality=ImageConversion::DEFAULT_COMPRESSED_QUALITY)
 
std::vector< std::byte > saveImageToFile (uint8_t mip=0, uint16_t frame=0, uint8_t face=0, uint16_t slice=0, ImageConversion::FileFormat fileFormat=ImageConversion::FileFormat::DEFAULT) const
 
bool saveImageToFile (const std::string &imagePath, uint8_t mip=0, uint16_t frame=0, uint8_t face=0, uint16_t slice=0, ImageConversion::FileFormat fileFormat=ImageConversion::FileFormat::DEFAULT) const
 
bool hasThumbnailData () const
 
std::span< const std::byte > getThumbnailDataRaw () const
 
std::vector< std::byte > getThumbnailDataAs (ImageFormat newFormat) const
 
std::vector< std::byte > getThumbnailDataAsRGBA8888 () const
 
void setThumbnail (std::span< const std::byte > imageData_, ImageFormat format_, uint16_t width_, uint16_t height_, float quality=ImageConversion::DEFAULT_COMPRESSED_QUALITY)
 
bool setThumbnail (const std::string &imagePath, float quality=ImageConversion::DEFAULT_COMPRESSED_QUALITY)
 
void computeThumbnail (ImageConversion::ResizeFilter filter=ImageConversion::ResizeFilter::DEFAULT, float quality=ImageConversion::DEFAULT_COMPRESSED_QUALITY)
 
void removeThumbnail ()
 
std::vector< std::byte > saveThumbnailToFile (ImageConversion::FileFormat fileFormat=ImageConversion::FileFormat::DEFAULT) const
 
bool saveThumbnailToFile (const std::string &imagePath, ImageConversion::FileFormat fileFormat=ImageConversion::FileFormat::DEFAULT) const
 
bool hasFallbackData () const
 
std::span< const std::byte > getFallbackDataRaw (uint8_t mip=0, uint16_t frame=0, uint8_t face=0) const
 
std::vector< std::byte > getFallbackDataAs (ImageFormat newFormat, uint8_t mip=0, uint16_t frame=0, uint8_t face=0) const
 
std::vector< std::byte > getFallbackDataAsRGBA8888 (uint8_t mip=0, uint16_t frame=0, uint8_t face=0) const
 
void computeFallback (ImageConversion::ResizeFilter filter=ImageConversion::ResizeFilter::DEFAULT)
 
void removeFallback ()
 
std::vector< std::byte > saveFallbackToFile (uint8_t mip=0, uint16_t frame=0, uint8_t face=0, ImageConversion::FileFormat fileFormat=ImageConversion::FileFormat::DEFAULT) const
 
bool saveFallbackToFile (const std::string &imagePath, uint8_t mip=0, uint16_t frame=0, uint8_t face=0, ImageConversion::FileFormat fileFormat=ImageConversion::FileFormat::DEFAULT) const
 
uint8_t getConsoleMipScale () const
 
void setConsoleMipScale (uint8_t consoleMipScale_)
 
uint64_t estimateBakeSize () const
 
uint64_t estimateBakeSize (bool &isExact) const
 
std::vector< std::byte > bake () const
 
bool bake (const std::string &vtfPath) const
 

Static Public Member Functions

static bool create (std::span< const std::byte > imageData, ImageFormat format, uint16_t width, uint16_t height, const std::string &vtfPath, const CreationOptions &options)
 
static bool create (ImageFormat format, uint16_t width, uint16_t height, const std::string &vtfPath, const CreationOptions &options)
 
static VTF create (std::span< const std::byte > imageData, ImageFormat format, uint16_t width, uint16_t height, const CreationOptions &options)
 
static VTF create (ImageFormat format, uint16_t width, uint16_t height, const CreationOptions &options)
 
static bool create (const std::string &imagePath, const std::string &vtfPath, const CreationOptions &options)
 
static VTF create (const std::string &imagePath, const CreationOptions &options)
 
static ImageFormat getDefaultCompressedFormat (ImageFormat inputFormat, uint32_t version, bool isCubeMap)
 

Static Public Attributes

static constexpr auto FORMAT_UNCHANGED = static_cast<ImageFormat>(-2)
 This value is only valid when passed to VTF::create through CreationOptions.
 
static constexpr auto FORMAT_DEFAULT = static_cast<ImageFormat>(-1)
 This value is only valid when passed to VTF::create through CreationOptions or VTF::setFormat.
 

Protected Member Functions

ResourcegetResourceInternal (Resource::Type type)
 
void setResourceInternal (Resource::Type type, std::span< const std::byte > data_)
 
void removeResourceInternal (Resource::Type type)
 
void regenerateImageData (ImageFormat newFormat, uint16_t newWidth, uint16_t newHeight, uint8_t newMipCount, uint16_t newFrameCount, uint8_t newFaceCount, uint16_t newDepth, ImageConversion::ResizeFilter filter=ImageConversion::ResizeFilter::DEFAULT, float quality=ImageConversion::DEFAULT_COMPRESSED_QUALITY)
 

Static Protected Member Functions

static bool createInternal (VTF &writer, CreationOptions options)
 

Protected Attributes

bool opened = false
 
std::vector< std::byte > data
 
uint32_t version = 4
 
uint16_t width = 0
 
uint16_t height = 0
 
uint32_t flags = FLAG_V0_NO_MIP | FLAG_V0_NO_LOD
 
uint16_t frameCount = 1
 
uint16_t startFrame = 0
 
sourcepp::math::Vec3f reflectivity {0.2f, 0.2f, 0.2f}
 
float bumpMapScale = 0.f
 
ImageFormat format = ImageFormat::EMPTY
 
uint8_t mipCount = 1
 
ImageFormat thumbnailFormat = ImageFormat::EMPTY
 
uint8_t thumbnailWidth = 0
 
uint8_t thumbnailHeight = 0
 
uint8_t fallbackWidth = 0
 
uint8_t fallbackHeight = 0
 
uint8_t fallbackMipCount = 0
 
uint8_t consoleMipScale = 0
 
uint16_t depth = 1
 
std::vector< Resourceresources
 
Platform platform = PLATFORM_PC
 
int16_t compressionLevel = 0
 
CompressionMethod compressionMethod = CompressionMethod::ZSTD
 
ImageConversion::ResizeMethod imageWidthResizeMethod = ImageConversion::ResizeMethod::POWER_OF_TWO_BIGGER
 
ImageConversion::ResizeMethod imageHeightResizeMethod = ImageConversion::ResizeMethod::POWER_OF_TWO_BIGGER
 

Detailed Description

Definition at line 162 of file VTF.h.

Member Enumeration Documentation

◆ Flags

enum vtfpp::VTF::Flags : uint32_t
Enumerator
FLAG_V0_POINT_SAMPLE 
FLAG_V0_TRILINEAR 
FLAG_V0_CLAMP_S 
FLAG_V0_CLAMP_T 
FLAG_V0_ANISOTROPIC 
FLAG_V0_VTEX_HINT_DXT5 
FLAG_V0_VTEX_NO_COMPRESS 
FLAG_V0_NORMAL 
FLAG_V0_NO_MIP 
FLAG_V0_NO_LOD 
FLAG_V0_LOAD_SMALL_MIPS 
FLAG_V0_PROCEDURAL 
FLAG_V0_ONE_BIT_ALPHA 
FLAG_V0_MULTI_BIT_ALPHA 
FLAG_V0_ENVMAP 
FLAG_MASK_V0 
FLAG_MASK_V0_VTEX 
FLAG_V1_RENDERTARGET 
FLAG_V1_DEPTH_RENDERTARGET 
FLAG_V1_NO_DEBUG_OVERRIDE 
FLAG_V1_SINGLE_COPY 
FLAG_V1_VTEX_ONE_OVER_MIP_LEVEL_IN_ALPHA 
FLAG_V1_VTEX_PREMULTIPLY_COLOR_BY_ONE_OVER_MIP_LEVEL 
FLAG_V1_VTEX_CONVERT_NORMAL_TO_DUDV 
FLAG_MASK_V1 
FLAG_MASK_V1_VTEX 
FLAG_V2_VTEX_ALPHA_TEST_MIP_GENERATION 
FLAG_V2_NO_DEPTH_BUFFER 
FLAG_V2_VTEX_NICE_FILTERED 
FLAG_V2_CLAMP_U 
FLAG_MASK_V2 
FLAG_MASK_V2_VTEX 
FLAG_XBOX_VTEX_PRESWIZZLED 
FLAG_XBOX_CACHEABLE 
FLAG_XBOX_UNFILTERABLE_OK 
FLAG_MASK_XBOX 
FLAG_MASK_XBOX_VTEX 
FLAG_V3_LOAD_ALL_MIPS 
FLAG_V3_VERTEX_TEXTURE 
FLAG_V3_SSBUMP 
FLAG_V3_BORDER 
FLAG_MASK_V3 
FLAG_V4_SRGB 
FLAG_MASK_V4 
FLAG_V4_TF2_STAGING_MEMORY 
FLAG_V4_TF2_IMMEDIATE_CLEANUP 
FLAG_V4_TF2_IGNORE_PICMIP 
FLAG_V4_TF2_STREAMABLE_COARSE 
FLAG_V4_TF2_STREAMABLE_FINE 
FLAG_MASK_V4_TF2 
FLAG_V5_PWL_CORRECTED 
FLAG_V5_SRGB 
FLAG_V5_DEFAULT_POOL 
FLAG_V5_LOAD_MOST_MIPS 
FLAG_MASK_V5 
FLAG_V5_CSGO_COMBINED 
FLAG_V5_CSGO_ASYNC_DOWNLOAD 
FLAG_V5_CSGO_SKIP_INITIAL_DOWNLOAD 
FLAG_V5_CSGO_YCOCG 
FLAG_V5_CSGO_ASYNC_SKIP_INITIAL_LOW_RES 
FLAG_MASK_V5_CSGO 
FLAG_MASK_INTERNAL 

Definition at line 164 of file VTF.h.

◆ Platform

enum vtfpp::VTF::Platform : uint32_t
Enumerator
PLATFORM_UNKNOWN 
PLATFORM_PC 
PLATFORM_XBOX 
PLATFORM_X360 
PLATFORM_PS3_ORANGEBOX 
PLATFORM_PS3_PORTAL2 

Definition at line 238 of file VTF.h.

Constructor & Destructor Documentation

◆ VTF() [1/6]

VTF::VTF ( )

Definition at line 268 of file VTF.cpp.

◆ VTF() [2/6]

VTF::VTF ( std::vector< std::byte > &&  vtfData,
bool  parseHeaderOnly = false 
)
explicit

Definition at line 272 of file VTF.cpp.

◆ VTF() [3/6]

VTF::VTF ( std::span< const std::byte >  vtfData,
bool  parseHeaderOnly = false 
)
explicit

Definition at line 683 of file VTF.cpp.

◆ VTF() [4/6]

VTF::VTF ( const std::string &  vtfPath,
bool  parseHeaderOnly = false 
)
explicit

Definition at line 686 of file VTF.cpp.

◆ VTF() [5/6]

VTF::VTF ( const VTF other)

Definition at line 689 of file VTF.cpp.

◆ VTF() [6/6]

vtfpp::VTF::VTF ( VTF &&  )
defaultnoexcept

Member Function Documentation

◆ addFlags()

void VTF::addFlags ( uint32_t  flags_)

Definition at line 1038 of file VTF.cpp.

◆ bake() [1/2]

std::vector< std::byte > VTF::bake ( ) const

Definition at line 2080 of file VTF.cpp.

◆ bake() [2/2]

bool VTF::bake ( const std::string &  vtfPath) const

Definition at line 2408 of file VTF.cpp.

◆ computeFallback()

Definition at line 1923 of file VTF.cpp.

◆ computeMips()

Definition at line 1153 of file VTF.cpp.

◆ computeReflectivity()

void VTF::computeReflectivity ( )

Definition at line 1285 of file VTF.cpp.

◆ computeThumbnail()

Definition at line 1865 of file VTF.cpp.

◆ computeTransparencyFlags()

void VTF::computeTransparencyFlags ( )

Definition at line 1066 of file VTF.cpp.

◆ create() [1/6]

VTF VTF::create ( const std::string &  imagePath,
const CreationOptions options 
)
static

Definition at line 841 of file VTF.cpp.

◆ create() [2/6]

bool VTF::create ( const std::string &  imagePath,
const std::string &  vtfPath,
const CreationOptions options 
)
static

Definition at line 827 of file VTF.cpp.

◆ create() [3/6]

VTF VTF::create ( ImageFormat  format,
uint16_t  width,
uint16_t  height,
const CreationOptions options 
)
static

Definition at line 821 of file VTF.cpp.

◆ create() [4/6]

bool VTF::create ( ImageFormat  format,
uint16_t  width,
uint16_t  height,
const std::string &  vtfPath,
const CreationOptions options 
)
static

Definition at line 805 of file VTF.cpp.

◆ create() [5/6]

VTF VTF::create ( std::span< const std::byte >  imageData,
ImageFormat  format,
uint16_t  width,
uint16_t  height,
const CreationOptions options 
)
static

Definition at line 811 of file VTF.cpp.

◆ create() [6/6]

bool VTF::create ( std::span< const std::byte >  imageData,
ImageFormat  format,
uint16_t  width,
uint16_t  height,
const std::string &  vtfPath,
const CreationOptions options 
)
static

Definition at line 791 of file VTF.cpp.

◆ createInternal()

bool VTF::createInternal ( VTF writer,
CreationOptions  options 
)
staticprotected

Definition at line 736 of file VTF.cpp.

◆ estimateBakeSize() [1/2]

uint64_t VTF::estimateBakeSize ( ) const

Definition at line 1980 of file VTF.cpp.

◆ estimateBakeSize() [2/2]

uint64_t VTF::estimateBakeSize ( bool &  isExact) const

Definition at line 1985 of file VTF.cpp.

◆ getBumpMapScale()

float VTF::getBumpMapScale ( ) const

Definition at line 1349 of file VTF.cpp.

◆ getCompressionLevel()

int16_t VTF::getCompressionLevel ( ) const

Definition at line 1672 of file VTF.cpp.

◆ getCompressionMethod()

CompressionMethod VTF::getCompressionMethod ( ) const

Definition at line 1680 of file VTF.cpp.

◆ getConsoleMipScale()

uint8_t VTF::getConsoleMipScale ( ) const

Definition at line 1972 of file VTF.cpp.

◆ getDefaultCompressedFormat()

ImageFormat VTF::getDefaultCompressedFormat ( ImageFormat  inputFormat,
uint32_t  version,
bool  isCubeMap 
)
static

Definition at line 1081 of file VTF.cpp.

◆ getDepth()

uint16_t VTF::getDepth ( ) const

Definition at line 1249 of file VTF.cpp.

◆ getFaceCount()

uint8_t VTF::getFaceCount ( ) const

Definition at line 1215 of file VTF.cpp.

◆ getFallbackDataAs()

std::vector< std::byte > VTF::getFallbackDataAs ( ImageFormat  newFormat,
uint8_t  mip = 0,
uint16_t  frame = 0,
uint8_t  face = 0 
) const

Definition at line 1906 of file VTF.cpp.

◆ getFallbackDataAsRGBA8888()

std::vector< std::byte > VTF::getFallbackDataAsRGBA8888 ( uint8_t  mip = 0,
uint16_t  frame = 0,
uint8_t  face = 0 
) const

Definition at line 1919 of file VTF.cpp.

◆ getFallbackDataRaw()

std::span< const std::byte > VTF::getFallbackDataRaw ( uint8_t  mip = 0,
uint16_t  frame = 0,
uint8_t  face = 0 
) const

Definition at line 1897 of file VTF.cpp.

◆ getFallbackHeight()

uint8_t VTF::getFallbackHeight ( ) const

Definition at line 1373 of file VTF.cpp.

◆ getFallbackMipCount()

uint8_t VTF::getFallbackMipCount ( ) const

Definition at line 1377 of file VTF.cpp.

◆ getFallbackWidth()

uint8_t VTF::getFallbackWidth ( ) const

Definition at line 1369 of file VTF.cpp.

◆ getFlags()

uint32_t VTF::getFlags ( ) const

Definition at line 1030 of file VTF.cpp.

◆ getFormat()

ImageFormat VTF::getFormat ( ) const

Definition at line 1094 of file VTF.cpp.

◆ getFrameCount()

uint16_t VTF::getFrameCount ( ) const

Definition at line 1203 of file VTF.cpp.

◆ getHeight()

uint16_t VTF::getHeight ( uint8_t  mip = 0) const

Definition at line 991 of file VTF.cpp.

◆ getImageDataAs()

std::vector< std::byte > VTF::getImageDataAs ( ImageFormat  newFormat,
uint8_t  mip = 0,
uint16_t  frame = 0,
uint8_t  face = 0,
uint16_t  slice = 0 
) const

Definition at line 1707 of file VTF.cpp.

◆ getImageDataAsRGBA8888()

std::vector< std::byte > VTF::getImageDataAsRGBA8888 ( uint8_t  mip = 0,
uint16_t  frame = 0,
uint8_t  face = 0,
uint16_t  slice = 0 
) const

Definition at line 1720 of file VTF.cpp.

◆ getImageDataRaw()

std::span< const std::byte > VTF::getImageDataRaw ( uint8_t  mip = 0,
uint16_t  frame = 0,
uint8_t  face = 0,
uint16_t  slice = 0 
) const

Definition at line 1698 of file VTF.cpp.

◆ getImageHeightResizeMethod()

ImageConversion::ResizeMethod VTF::getImageHeightResizeMethod ( ) const

Definition at line 970 of file VTF.cpp.

◆ getImageWidthResizeMethod()

ImageConversion::ResizeMethod VTF::getImageWidthResizeMethod ( ) const

Definition at line 966 of file VTF.cpp.

◆ getMipCount()

uint8_t VTF::getMipCount ( ) const

Definition at line 1126 of file VTF.cpp.

◆ getPaletteResourceFrame()

std::vector< std::byte > VTF::getPaletteResourceFrame ( uint16_t  frame = 0) const

Definition at line 1542 of file VTF.cpp.

◆ getParticleSheetFrameDataAs()

std::vector< std::byte > VTF::getParticleSheetFrameDataAs ( ImageFormat  newFormat,
uint16_t &  spriteWidth,
uint16_t &  spriteHeight,
uint32_t  shtSequenceID,
uint32_t  shtFrame,
uint8_t  shtBounds = 0,
uint8_t  mip = 0,
uint16_t  frame = 0,
uint8_t  face = 0,
uint16_t  slice = 0 
) const

This is a convenience function. You're best off uploading the bounds to the GPU and scaling the UV there if trying to render a particle.

Definition at line 1591 of file VTF.cpp.

◆ getParticleSheetFrameDataAsRGBA8888()

std::vector< std::byte > VTF::getParticleSheetFrameDataAsRGBA8888 ( uint16_t &  spriteWidth,
uint16_t &  spriteHeight,
uint32_t  shtSequenceID,
uint32_t  shtFrame,
uint8_t  shtBounds = 0,
uint8_t  mip = 0,
uint16_t  frame = 0,
uint8_t  face = 0,
uint16_t  slice = 0 
) const

This is a convenience function. You're best off uploading the bounds to the GPU and scaling the UV there if trying to render a particle.

Definition at line 1595 of file VTF.cpp.

◆ getParticleSheetFrameDataRaw()

std::vector< std::byte > VTF::getParticleSheetFrameDataRaw ( uint16_t &  spriteWidth,
uint16_t &  spriteHeight,
uint32_t  shtSequenceID,
uint32_t  shtFrame,
uint8_t  shtBounds = 0,
uint8_t  mip = 0,
uint16_t  frame = 0,
uint8_t  face = 0,
uint16_t  slice = 0 
) const

This is a convenience function. You're best off uploading the bounds to the GPU and scaling the UV there if trying to render a particle.

Definition at line 1549 of file VTF.cpp.

◆ getPlatform()

VTF::Platform VTF::getPlatform ( ) const

Definition at line 851 of file VTF.cpp.

◆ getReflectivity()

math::Vec3f VTF::getReflectivity ( ) const

Definition at line 1277 of file VTF.cpp.

◆ getResource()

const Resource * VTF::getResource ( Resource::Type  type) const

Definition at line 1385 of file VTF.cpp.

◆ getResourceInternal()

Resource * VTF::getResourceInternal ( Resource::Type  type)
protected

Definition at line 1394 of file VTF.cpp.

◆ getResources()

const std::vector< Resource > & VTF::getResources ( ) const

Definition at line 1381 of file VTF.cpp.

◆ getStartFrame()

uint16_t VTF::getStartFrame ( ) const

Definition at line 1269 of file VTF.cpp.

◆ getThumbnailDataAs()

std::vector< std::byte > VTF::getThumbnailDataAs ( ImageFormat  newFormat) const

Definition at line 1821 of file VTF.cpp.

◆ getThumbnailDataAsRGBA8888()

std::vector< std::byte > VTF::getThumbnailDataAsRGBA8888 ( ) const

Definition at line 1829 of file VTF.cpp.

◆ getThumbnailDataRaw()

std::span< const std::byte > VTF::getThumbnailDataRaw ( ) const

Definition at line 1814 of file VTF.cpp.

◆ getThumbnailFormat()

ImageFormat VTF::getThumbnailFormat ( ) const

Definition at line 1357 of file VTF.cpp.

◆ getThumbnailHeight()

uint8_t VTF::getThumbnailHeight ( ) const

Definition at line 1365 of file VTF.cpp.

◆ getThumbnailWidth()

uint8_t VTF::getThumbnailWidth ( ) const

Definition at line 1361 of file VTF.cpp.

◆ getVersion()

uint32_t VTF::getVersion ( ) const

Definition at line 926 of file VTF.cpp.

◆ getWidth()

uint16_t VTF::getWidth ( uint8_t  mip = 0) const

Definition at line 987 of file VTF.cpp.

◆ hasFallbackData()

bool VTF::hasFallbackData ( ) const

Definition at line 1893 of file VTF.cpp.

◆ hasImageData()

bool VTF::hasImageData ( ) const

Definition at line 1694 of file VTF.cpp.

◆ hasThumbnailData()

bool VTF::hasThumbnailData ( ) const

Definition at line 1810 of file VTF.cpp.

◆ isSRGB()

bool VTF::isSRGB ( ) const

Definition at line 1046 of file VTF.cpp.

◆ operator bool()

VTF::operator bool ( ) const
explicit

Definition at line 732 of file VTF.cpp.

◆ operator=() [1/2]

VTF & VTF::operator= ( const VTF other)

Definition at line 693 of file VTF.cpp.

◆ operator=() [2/2]

VTF & vtfpp::VTF::operator= ( VTF &&  )
defaultnoexcept

◆ regenerateImageData()

void VTF::regenerateImageData ( ImageFormat  newFormat,
uint16_t  newWidth,
uint16_t  newHeight,
uint8_t  newMipCount,
uint16_t  newFrameCount,
uint8_t  newFaceCount,
uint16_t  newDepth,
ImageConversion::ResizeFilter  filter = ImageConversion::ResizeFilter::DEFAULT,
float  quality = ImageConversion::DEFAULT_COMPRESSED_QUALITY 
)
protected

Definition at line 1462 of file VTF.cpp.

◆ removeCRCResource()

void VTF::removeCRCResource ( )

Definition at line 1618 of file VTF.cpp.

◆ removeExtendedFlagsResource()

void VTF::removeExtendedFlagsResource ( )

Definition at line 1639 of file VTF.cpp.

◆ removeFallback()

void VTF::removeFallback ( )

Definition at line 1954 of file VTF.cpp.

◆ removeFlags()

void VTF::removeFlags ( uint32_t  flags_)

Definition at line 1042 of file VTF.cpp.

◆ removeHotspotDataResource()

void VTF::removeHotspotDataResource ( )

Definition at line 1668 of file VTF.cpp.

◆ removeKeyValuesDataResource()

void VTF::removeKeyValuesDataResource ( )

Definition at line 1653 of file VTF.cpp.

◆ removeLODResource()

void VTF::removeLODResource ( )

Definition at line 1631 of file VTF.cpp.

◆ removeParticleSheetResource()

void VTF::removeParticleSheetResource ( )

Definition at line 1610 of file VTF.cpp.

◆ removeResourceInternal()

void VTF::removeResourceInternal ( Resource::Type  type)
protected

Definition at line 1458 of file VTF.cpp.

◆ removeThumbnail()

void VTF::removeThumbnail ( )

Definition at line 1875 of file VTF.cpp.

◆ saveFallbackToFile() [1/2]

bool VTF::saveFallbackToFile ( const std::string &  imagePath,
uint8_t  mip = 0,
uint16_t  frame = 0,
uint8_t  face = 0,
ImageConversion::FileFormat  fileFormat = ImageConversion::FileFormat::DEFAULT 
) const

Definition at line 1965 of file VTF.cpp.

◆ saveFallbackToFile() [2/2]

std::vector< std::byte > VTF::saveFallbackToFile ( uint8_t  mip = 0,
uint16_t  frame = 0,
uint8_t  face = 0,
ImageConversion::FileFormat  fileFormat = ImageConversion::FileFormat::DEFAULT 
) const

Definition at line 1961 of file VTF.cpp.

◆ saveImageToFile() [1/2]

bool VTF::saveImageToFile ( const std::string &  imagePath,
uint8_t  mip = 0,
uint16_t  frame = 0,
uint8_t  face = 0,
uint16_t  slice = 0,
ImageConversion::FileFormat  fileFormat = ImageConversion::FileFormat::DEFAULT 
) const

Definition at line 1803 of file VTF.cpp.

◆ saveImageToFile() [2/2]

std::vector< std::byte > VTF::saveImageToFile ( uint8_t  mip = 0,
uint16_t  frame = 0,
uint8_t  face = 0,
uint16_t  slice = 0,
ImageConversion::FileFormat  fileFormat = ImageConversion::FileFormat::DEFAULT 
) const

Definition at line 1799 of file VTF.cpp.

◆ saveThumbnailToFile() [1/2]

bool VTF::saveThumbnailToFile ( const std::string &  imagePath,
ImageConversion::FileFormat  fileFormat = ImageConversion::FileFormat::DEFAULT 
) const

Definition at line 1886 of file VTF.cpp.

◆ saveThumbnailToFile() [2/2]

std::vector< std::byte > VTF::saveThumbnailToFile ( ImageConversion::FileFormat  fileFormat = ImageConversion::FileFormat::DEFAULT) const

Definition at line 1882 of file VTF.cpp.

◆ setBumpMapScale()

void VTF::setBumpMapScale ( float  newBumpMapScale)

Definition at line 1353 of file VTF.cpp.

◆ setCompressionLevel()

void VTF::setCompressionLevel ( int16_t  newCompressionLevel)

Definition at line 1676 of file VTF.cpp.

◆ setCompressionMethod()

void VTF::setCompressionMethod ( CompressionMethod  newCompressionMethod)

Definition at line 1684 of file VTF.cpp.

◆ setConsoleMipScale()

void VTF::setConsoleMipScale ( uint8_t  consoleMipScale_)

Definition at line 1976 of file VTF.cpp.

◆ setCRCResource()

void VTF::setCRCResource ( uint32_t  value)

Definition at line 1614 of file VTF.cpp.

◆ setDepth()

bool VTF::setDepth ( uint16_t  newDepth)

Definition at line 1253 of file VTF.cpp.

◆ setExtendedFlagsResource()

void VTF::setExtendedFlagsResource ( uint32_t  value)

Definition at line 1635 of file VTF.cpp.

◆ setFaceCount()

bool VTF::setFaceCount ( bool  isCubeMap)

Definition at line 1241 of file VTF.cpp.

◆ setFlags()

void VTF::setFlags ( uint32_t  flags_)

Definition at line 1034 of file VTF.cpp.

◆ setFormat()

Definition at line 1098 of file VTF.cpp.

◆ setFrameCount()

bool VTF::setFrameCount ( uint16_t  newFrameCount)

Definition at line 1207 of file VTF.cpp.

◆ setFrameFaceAndDepth()

bool VTF::setFrameFaceAndDepth ( uint16_t  newFrameCount,
bool  isCubeMap,
uint16_t  newDepth = 1 
)

Definition at line 1261 of file VTF.cpp.

◆ setHotspotDataResource()

void VTF::setHotspotDataResource ( const HOT value)

Definition at line 1657 of file VTF.cpp.

◆ setImage() [1/2]

bool VTF::setImage ( const std::string &  imagePath,
ImageConversion::ResizeFilter  filter = ImageConversion::ResizeFilter::DEFAULT,
uint8_t  mip = 0,
uint16_t  frame = 0,
uint8_t  face = 0,
uint16_t  slice = 0,
float  quality = ImageConversion::DEFAULT_COMPRESSED_QUALITY 
)

Definition at line 1769 of file VTF.cpp.

◆ setImage() [2/2]

bool VTF::setImage ( std::span< const std::byte >  imageData_,
ImageFormat  format_,
uint16_t  width_,
uint16_t  height_,
ImageConversion::ResizeFilter  filter = ImageConversion::ResizeFilter::DEFAULT,
uint8_t  mip = 0,
uint16_t  frame = 0,
uint8_t  face = 0,
uint16_t  slice = 0,
float  quality = ImageConversion::DEFAULT_COMPRESSED_QUALITY 
)

Definition at line 1724 of file VTF.cpp.

◆ setImageHeightResizeMethod()

void VTF::setImageHeightResizeMethod ( ImageConversion::ResizeMethod  imageHeightResizeMethod_)

Definition at line 983 of file VTF.cpp.

◆ setImageResizeMethods()

void VTF::setImageResizeMethods ( ImageConversion::ResizeMethod  imageWidthResizeMethod_,
ImageConversion::ResizeMethod  imageHeightResizeMethod_ 
)

Definition at line 974 of file VTF.cpp.

◆ setImageWidthResizeMethod()

void VTF::setImageWidthResizeMethod ( ImageConversion::ResizeMethod  imageWidthResizeMethod_)

Definition at line 979 of file VTF.cpp.

◆ setKeyValuesDataResource()

void VTF::setKeyValuesDataResource ( const std::string &  value)

Definition at line 1643 of file VTF.cpp.

◆ setLODResource()

void VTF::setLODResource ( uint8_t  u,
uint8_t  v,
uint8_t  u360 = 0,
uint8_t  v360 = 0 
)

Definition at line 1622 of file VTF.cpp.

◆ setMipCount()

bool VTF::setMipCount ( uint8_t  newMipCount)

Definition at line 1130 of file VTF.cpp.

◆ setParticleSheetResource()

void VTF::setParticleSheetResource ( const SHT value)

Definition at line 1599 of file VTF.cpp.

◆ setPlatform()

void VTF::setPlatform ( Platform  newPlatform)

Definition at line 855 of file VTF.cpp.

◆ setRecommendedMipCount()

bool VTF::setRecommendedMipCount ( )

Definition at line 1146 of file VTF.cpp.

◆ setReflectivity()

void VTF::setReflectivity ( sourcepp::math::Vec3f  newReflectivity)

Definition at line 1281 of file VTF.cpp.

◆ setResourceInternal()

void VTF::setResourceInternal ( Resource::Type  type,
std::span< const std::byte >  data_ 
)
protected

Definition at line 1403 of file VTF.cpp.

◆ setSize()

void VTF::setSize ( uint16_t  newWidth,
uint16_t  newHeight,
ImageConversion::ResizeFilter  filter 
)

Definition at line 995 of file VTF.cpp.

◆ setSRGB()

void VTF::setSRGB ( bool  srgb)

Definition at line 1050 of file VTF.cpp.

◆ setStartFrame()

void VTF::setStartFrame ( uint16_t  newStartFrame)

Definition at line 1273 of file VTF.cpp.

◆ setThumbnail() [1/2]

bool VTF::setThumbnail ( const std::string &  imagePath,
float  quality = ImageConversion::DEFAULT_COMPRESSED_QUALITY 
)

Definition at line 1843 of file VTF.cpp.

◆ setThumbnail() [2/2]

void VTF::setThumbnail ( std::span< const std::byte >  imageData_,
ImageFormat  format_,
uint16_t  width_,
uint16_t  height_,
float  quality = ImageConversion::DEFAULT_COMPRESSED_QUALITY 
)

Definition at line 1833 of file VTF.cpp.

◆ setVersion()

void VTF::setVersion ( uint32_t  newVersion)

Definition at line 930 of file VTF.cpp.

Member Data Documentation

◆ bumpMapScale

float vtfpp::VTF::bumpMapScale = 0.f
protected

Definition at line 537 of file VTF.h.

◆ compressionLevel

int16_t vtfpp::VTF::compressionLevel = 0
protected

Definition at line 560 of file VTF.h.

◆ compressionMethod

CompressionMethod vtfpp::VTF::compressionMethod = CompressionMethod::ZSTD
protected

Definition at line 561 of file VTF.h.

◆ consoleMipScale

uint8_t vtfpp::VTF::consoleMipScale = 0
protected

Definition at line 550 of file VTF.h.

◆ data

std::vector<std::byte> vtfpp::VTF::data
protected

Definition at line 524 of file VTF.h.

◆ depth

uint16_t vtfpp::VTF::depth = 1
protected

Definition at line 553 of file VTF.h.

◆ fallbackHeight

uint8_t vtfpp::VTF::fallbackHeight = 0
protected

Definition at line 546 of file VTF.h.

◆ fallbackMipCount

uint8_t vtfpp::VTF::fallbackMipCount = 0
protected

Definition at line 547 of file VTF.h.

◆ fallbackWidth

uint8_t vtfpp::VTF::fallbackWidth = 0
protected

Definition at line 545 of file VTF.h.

◆ flags

uint32_t vtfpp::VTF::flags = FLAG_V0_NO_MIP | FLAG_V0_NO_LOD
protected

Definition at line 530 of file VTF.h.

◆ format

ImageFormat vtfpp::VTF::format = ImageFormat::EMPTY
protected

Definition at line 538 of file VTF.h.

◆ FORMAT_DEFAULT

constexpr auto vtfpp::VTF::FORMAT_DEFAULT = static_cast<ImageFormat>(-1)
staticconstexpr

This value is only valid when passed to VTF::create through CreationOptions or VTF::setFormat.

Definition at line 276 of file VTF.h.

◆ FORMAT_UNCHANGED

constexpr auto vtfpp::VTF::FORMAT_UNCHANGED = static_cast<ImageFormat>(-2)
staticconstexpr

This value is only valid when passed to VTF::create through CreationOptions.

Definition at line 273 of file VTF.h.

◆ frameCount

uint16_t vtfpp::VTF::frameCount = 1
protected

Definition at line 532 of file VTF.h.

◆ height

uint16_t vtfpp::VTF::height = 0
protected

Definition at line 529 of file VTF.h.

◆ imageHeightResizeMethod

Definition at line 563 of file VTF.h.

◆ imageWidthResizeMethod

Definition at line 562 of file VTF.h.

◆ mipCount

uint8_t vtfpp::VTF::mipCount = 1
protected

Definition at line 539 of file VTF.h.

◆ opened

bool vtfpp::VTF::opened = false
protected

Definition at line 522 of file VTF.h.

◆ platform

Platform vtfpp::VTF::platform = PLATFORM_PC
protected

Definition at line 559 of file VTF.h.

◆ reflectivity

sourcepp::math::Vec3f vtfpp::VTF::reflectivity {0.2f, 0.2f, 0.2f}
protected

Definition at line 535 of file VTF.h.

◆ resources

std::vector<Resource> vtfpp::VTF::resources
protected

Definition at line 556 of file VTF.h.

◆ startFrame

uint16_t vtfpp::VTF::startFrame = 0
protected

Definition at line 533 of file VTF.h.

◆ thumbnailFormat

ImageFormat vtfpp::VTF::thumbnailFormat = ImageFormat::EMPTY
protected

Definition at line 541 of file VTF.h.

◆ thumbnailHeight

uint8_t vtfpp::VTF::thumbnailHeight = 0
protected

Definition at line 543 of file VTF.h.

◆ thumbnailWidth

uint8_t vtfpp::VTF::thumbnailWidth = 0
protected

Definition at line 542 of file VTF.h.

◆ version

uint32_t vtfpp::VTF::version = 4
protected

Definition at line 526 of file VTF.h.

◆ width

uint16_t vtfpp::VTF::width = 0
protected

Definition at line 528 of file VTF.h.


The documentation for this class was generated from the following files: