Lightmetrica  0.0.1.50dbee3 (yosakoi)
 All Classes Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | List of all members
Asset Class Referenceabstract

#include <asset.h>

Public Member Functions

virtual bool Load (const ConfigNode &node, const Assets &assets)=0
 
LM_PUBLIC_API std::string ID () const
 
LM_HIDDEN_API void SetID (const std::string &id)
 
- Public Member Functions inherited from Component
virtual std::string ComponentInterfaceTypeName () const =0
 
virtual std::string ComponentImplTypeName () const =0
 
- Public Member Functions inherited from SIMDAlignedType
void * operator new (std::size_t size) throw (std::bad_alloc)
 
void operator delete (void *p)
 

Detailed Description

Asset. A base class for assets.

Inheritance diagram for Asset:
Component SIMDAlignedType Film GeneralizedBSDF StubAsset StubAsset_A StubAsset_B StubAsset_C StubAsset_D StubAsset_E StubAsset_F Texture TriangleMesh

Member Function Documentation

LM_NAMESPACE_BEGIN std::string Asset::ID ( ) const

Get ID of the asset.

Returns
ID of the asset.
virtual bool Asset::Load ( const ConfigNode node,
const Assets assets 
)
pure virtual

Load an asset. Configure and initialize the asset by the XML elements given by #node. Some assets have references to the other assets, so #assets is also required. Dependent asset must be loaded beforehand.

Parameters
nodeXML node for the configuration.
assetsAsset manager.
trueSucceeded to load.
falseFailed to load.

Implemented in StubAsset_F_Impl, StubAsset_E_Impl, StubAsset_D_Impl, StubAsset_C_Impl, ObjMesh, StubAsset_B_Impl, StubAsset_A_Impl, StubAsset_FailOnCreate, AreaLight, PerspectiveCamera, DiffuseBSDF, ConstantEnvironmentLight, ThinLensCamera, DefaultBitmapTexture, HDRBitmapFilm, DiffuseMirrorMixBSDF, DielectricBSDF, StubAsset_Success, StubFilm, StubTriangleMesh, PerfectMirrorBSDF, RawMesh, LDRBitmapFilm, TestBSDF, ConstantTexture, and StubBSDF.

void Asset::SetID ( const std::string &  id)

Set ID of the asset. This is an internal function.

Parameters
idID of the asset.

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