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

#include <SHT.h>

Collaboration diagram for vtfpp::SHT:

Classes

struct  Sequence
 

Public Member Functions

 SHT ()
 
 SHT (std::span< const std::byte > shtData)
 
 SHT (const std::string &shtPath)
 
 operator bool () const
 
uint32_t getVersion () const
 
void setVersion (uint32_t v)
 
const std::vector< Sequence > & getSequences () const
 
std::vector< Sequence > & getSequences ()
 
const SequencegetSequenceFromID (uint32_t id) const
 
SequencegetSequenceFromID (uint32_t id)
 
uint8_t getFrameBoundsCount () const
 
std::vector< std::byte > bake () const
 
bool bake (const std::string &shtPath) const
 

Protected Attributes

bool opened
 
uint32_t version
 
std::vector< Sequencesequences
 

Detailed Description

Definition at line 13 of file SHT.h.

Constructor & Destructor Documentation

◆ SHT() [1/3]

SHT::SHT ( )

Definition at line 8 of file SHT.cpp.

◆ SHT() [2/3]

SHT::SHT ( std::span< const std::byte >  shtData)
explicit

Definition at line 12 of file SHT.cpp.

◆ SHT() [3/3]

SHT::SHT ( const std::string &  shtPath)
explicit

Definition at line 36 of file SHT.cpp.

Member Function Documentation

◆ bake() [1/2]

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

Definition at line 84 of file SHT.cpp.

◆ bake() [2/2]

bool SHT::bake ( const std::string &  shtPath) const

Definition at line 117 of file SHT.cpp.

◆ getFrameBoundsCount()

uint8_t SHT::getFrameBoundsCount ( ) const

Definition at line 80 of file SHT.cpp.

◆ getSequenceFromID() [1/2]

SHT::Sequence * SHT::getSequenceFromID ( uint32_t  id)

Definition at line 71 of file SHT.cpp.

◆ getSequenceFromID() [2/2]

const SHT::Sequence * SHT::getSequenceFromID ( uint32_t  id) const

Definition at line 62 of file SHT.cpp.

◆ getSequences() [1/2]

std::vector< SHT::Sequence > & SHT::getSequences ( )

Definition at line 58 of file SHT.cpp.

◆ getSequences() [2/2]

const std::vector< SHT::Sequence > & SHT::getSequences ( ) const

Definition at line 54 of file SHT.cpp.

◆ getVersion()

uint32_t SHT::getVersion ( ) const

Definition at line 43 of file SHT.cpp.

◆ operator bool()

SHT::operator bool ( ) const
explicit

Definition at line 39 of file SHT.cpp.

◆ setVersion()

void SHT::setVersion ( uint32_t  v)

Definition at line 47 of file SHT.cpp.

Member Data Documentation

◆ opened

bool vtfpp::SHT::opened
protected

Definition at line 69 of file SHT.h.

◆ sequences

std::vector<Sequence> vtfpp::SHT::sequences
protected

Definition at line 72 of file SHT.h.

◆ version

uint32_t vtfpp::SHT::version
protected

Definition at line 71 of file SHT.h.


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