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

#include <HOT.h>

Collaboration diagram for vtfpp::HOT:

Classes

struct  Rect

Public Member Functions

 HOT ()
 HOT (std::span< const std::byte > hotData)
 HOT (const std::filesystem::path &hotPath)
 operator bool () const
uint8_t getVersion () const
void setVersion (uint8_t v)
uint8_t getFlags () const
void setFlags (uint8_t f)
const std::vector< Rect > & getRects () const
std::vector< Rect > & getRects ()
std::vector< std::byte > bake () const
bool bake (const std::filesystem::path &hotPath) const

Protected Attributes

bool opened
uint8_t version = 1
uint8_t flags = 0
std::vector< Rectrects

Detailed Description

Definition at line 13 of file HOT.h.

Constructor & Destructor Documentation

◆ HOT() [1/3]

HOT::HOT ( )

Definition at line 8 of file HOT.cpp.

◆ HOT() [2/3]

HOT::HOT ( std::span< const std::byte > hotData)
explicit

Definition at line 11 of file HOT.cpp.

◆ HOT() [3/3]

HOT::HOT ( const std::filesystem::path & hotPath)
explicit

Definition at line 27 of file HOT.cpp.

Member Function Documentation

◆ bake() [1/2]

std::vector< std::byte > HOT::bake ( ) const
nodiscard

Definition at line 61 of file HOT.cpp.

◆ bake() [2/2]

bool HOT::bake ( const std::filesystem::path & hotPath) const

Definition at line 80 of file HOT.cpp.

◆ getFlags()

uint8_t HOT::getFlags ( ) const
nodiscard

Definition at line 45 of file HOT.cpp.

◆ getRects() [1/2]

std::vector< HOT::Rect > & HOT::getRects ( )
nodiscard

Definition at line 57 of file HOT.cpp.

◆ getRects() [2/2]

const std::vector< HOT::Rect > & HOT::getRects ( ) const
nodiscard

Definition at line 53 of file HOT.cpp.

◆ getVersion()

uint8_t HOT::getVersion ( ) const
nodiscard

Definition at line 34 of file HOT.cpp.

◆ operator bool()

HOT::operator bool ( ) const
explicitnodiscard

Definition at line 30 of file HOT.cpp.

◆ setFlags()

void HOT::setFlags ( uint8_t f)

Definition at line 49 of file HOT.cpp.

◆ setVersion()

void HOT::setVersion ( uint8_t v)

Definition at line 38 of file HOT.cpp.

Member Data Documentation

◆ flags

uint8_t vtfpp::HOT::flags = 0
protected

Definition at line 56 of file HOT.h.

◆ opened

bool vtfpp::HOT::opened
protected

Definition at line 53 of file HOT.h.

◆ rects

std::vector<Rect> vtfpp::HOT::rects
protected

Definition at line 57 of file HOT.h.

◆ version

uint8_t vtfpp::HOT::version = 1
protected

Definition at line 55 of file HOT.h.


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