OpenSiv3D  v0.6.5
C++20 framework for creative coding
s3d::IAsset Class Referenceabstract

#include <Asset.hpp>

Inherited by s3d::AudioAssetData, s3d::FontAssetData, s3d::PixelShaderAssetData, s3d::TextureAssetData, and s3d::VertexShaderAssetData.

Public Member Functions

 IAsset ()
 
 IAsset (const Array< String > &tags)
 
virtual ~IAsset ()
 
virtual bool load (const String &hint={})=0
 
virtual void loadAsync (const String &hint={})=0
 
virtual void wait ()=0
 
virtual void release ()=0
 
AssetState getState () const
 
const Array< AssetTag > & getTags () const
 
bool isAsyncLoading () const
 
bool isFinished () const
 

Protected Member Functions

bool isUninitialized () const
 
bool isLoaded () const
 
void setState (AssetState state)
 

Constructor & Destructor Documentation

◆ IAsset() [1/2]

s3d::IAsset::IAsset ( )

◆ IAsset() [2/2]

s3d::IAsset::IAsset ( const Array< String > &  tags)
explicit

◆ ~IAsset()

virtual s3d::IAsset::~IAsset ( )
virtual

Member Function Documentation

◆ getState()

AssetState s3d::IAsset::getState ( ) const

◆ getTags()

const Array<AssetTag>& s3d::IAsset::getTags ( ) const

◆ isAsyncLoading()

bool s3d::IAsset::isAsyncLoading ( ) const

◆ isFinished()

bool s3d::IAsset::isFinished ( ) const

◆ isLoaded()

bool s3d::IAsset::isLoaded ( ) const
protected

◆ isUninitialized()

bool s3d::IAsset::isUninitialized ( ) const
protected

◆ load()

virtual bool s3d::IAsset::load ( const String hint = {})
pure virtual

◆ loadAsync()

virtual void s3d::IAsset::loadAsync ( const String hint = {})
pure virtual

◆ release()

virtual void s3d::IAsset::release ( )
pure virtual

◆ setState()

void s3d::IAsset::setState ( AssetState  state)
protected

◆ wait()

virtual void s3d::IAsset::wait ( )
pure virtual

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