Deki 1.3.0
Modular C++ 2D engine for embedded displays and desktop
Loading...
Searching...
No Matches
Deki::AssetRefBase Struct Reference

Base class for type-erased access to AssetRef. More...

#include <AssetRef.h>

Inherited by Deki::AssetRef< T >.

Public Member Functions

bool HasGuid () const
bool HasSource () const
bool IsLoaded () const

Public Attributes

void * ptr = nullptr
std::string guid
std::string source
bool loadAttempted = false
uint64_t cachedEpoch = 0

Detailed Description

Base class for type-erased access to AssetRef.

This allows the asset loading system to access the guid and ptr without knowing the template type T.

Member Function Documentation

◆ HasGuid()

bool Deki::AssetRefBase::HasGuid ( ) const
inline

◆ HasSource()

bool Deki::AssetRefBase::HasSource ( ) const
inline

◆ IsLoaded()

bool Deki::AssetRefBase::IsLoaded ( ) const
inline

Member Data Documentation

◆ ptr

void* Deki::AssetRefBase::ptr = nullptr

◆ guid

std::string Deki::AssetRefBase::guid

◆ source

std::string Deki::AssetRefBase::source

◆ loadAttempted

bool Deki::AssetRefBase::loadAttempted = false

◆ cachedEpoch

uint64_t Deki::AssetRefBase::cachedEpoch = 0

The documentation for this struct was generated from the following file: