Lightmetrica
0.0.1.50dbee3 (yosakoi)
|
#include <sampler.h>
Public Member Functions | |
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) |
Sampler. An interface for samplers.
|
pure virtual |
Clone the sampler.
Implemented in RandomSampler, StratifiedSampler, PSSMLTPrimarySamplerImpl, and RewindableSamplerImpl.
|
pure virtual |
Sample a floating-point value.
Implemented in RandomSampler, PSSMLTPrimarySamplerImpl, StratifiedSampler, and RewindableSamplerImpl.
|
pure virtual |
Sample a unsigned integer value.
Implemented in RandomSampler, PSSMLTPrimarySamplerImpl, StratifiedSampler, and RewindableSamplerImpl.
|
pure virtual |
Sample a floating-point 2d vector value.
Implemented in RandomSampler, PSSMLTPrimarySamplerImpl, StratifiedSampler, and RewindableSamplerImpl.
|
pure virtual |
Ger underlying random number generator if available.
Implemented in RandomSampler, PSSMLTPrimarySamplerImpl, StratifiedSampler, and RewindableSamplerImpl.
|
pure virtual |
Set seed and initialize internal state. This function is valid only for
seed | Seed. |
Implemented in RandomSampler, StratifiedSampler, PSSMLTPrimarySamplerImpl, and RewindableSamplerImpl.
LM_NAMESPACE_BEGIN void Sampler::SetSeedWithCurrentTime | ( | ) |
Set seed with current time. Sets the sampler seed with current time.