Silicon
A realtime platform for creating interactive media.
Si::Asset Class Reference

#include <Asset.hpp>

Inheritance diagram for Si::Asset:
Collaboration diagram for Si::Asset:

Public Member Functions

const std::stringGetPath () const
 
Vector< std::uint8_t > & GetBytes ()
 
virtual ~Asset ()
 

Static Public Member Functions

template<typename T >
static std::shared_ptr< T > GetNow (const std::string &asset_path)
 
template<typename T >
static Future< std::shared_ptr< T > > Get (const std::string &asset_path)
 

Protected Member Functions

 Asset (std::string path)
 

Protected Attributes

Vector< std::uint8_tm_data
 

Detailed Description

Definition at line 44 of file Asset.hpp.

Constructor & Destructor Documentation

◆ ~Asset()

Si::Asset::~Asset ( )
virtual

Definition at line 83 of file Asset.cpp.

◆ Asset()

Si::Asset::Asset ( std::string  path)
explicitprotected

Definition at line 49 of file Asset.cpp.

Member Function Documentation

◆ Get()

template<typename T >
static Future< std::shared_ptr< T > > Si::Asset::Get ( const std::string asset_path)
inlinestatic

Definition at line 68 of file Asset.hpp.

◆ GetBytes()

Vector< std::uint8_t > & Si::Asset::GetBytes ( )

Definition at line 44 of file Asset.cpp.

◆ GetNow()

template<typename T >
static std::shared_ptr< T > Si::Asset::GetNow ( const std::string asset_path)
inlinestatic

Definition at line 48 of file Asset.hpp.

◆ GetPath()

const std::string & Si::Asset::GetPath ( ) const

Definition at line 39 of file Asset.cpp.

Member Data Documentation

◆ m_data

Vector<std::uint8_t> Si::Asset::m_data
protected

Definition at line 83 of file Asset.hpp.


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