#pragma once #include namespace embree { // Wrapper class class RandomSamplerWrapper { public: RandomSampler sampler; virtual void init(int id) { RandomSampler_init(sampler, id); } virtual void init(int pixelID, int sampleID) { RandomSampler_init(sampler, pixelID, sampleID); } virtual void init(int x, int y, int sampleID) { RandomSampler_init(sampler, x, y, sampleID); } virtual float get1D() { return RandomSampler_get1D(sampler); } virtual Vec2f get2D() { return RandomSampler_get2D(sampler); } virtual Vec3fa get3D() { return RandomSampler_get3D(sampler); } }; }