Lightmetrica
0.0.1.50dbee3 (yosakoi)
|
#include <configurablesampler.h>
Public Member Functions | |
LM_COMPONENT_INTERFACE_DEF ("configurablesampler") | |
virtual bool | Configure (const ConfigNode &node, const Assets &assets)=0 |
Public Member Functions inherited from Sampler | |
virtual Sampler * | Clone () const =0 |
virtual void | SetSeed (unsigned int seed)=0 |
virtual Math::Float | Next ()=0 |
virtual unsigned int | NextUInt ()=0 |
virtual Math::Vec2 | NextVec2 ()=0 |
virtual Random * | Rng ()=0 |
LM_PUBLIC_API void | SetSeedWithCurrentTime () |
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) |
Configurable sampler. An interface for sampler classes which are able to configure with a config node.
|
pure virtual |
Configure. Configure and initialize the sampler by the XML elements given by #node.
node | XML node for the configuration. |
assets | Asset manager. |
true | Succeeded to configure. |
false | Failed to configure. |
Implemented in RandomSampler, and StratifiedSampler.