ai_sampler.h
1 /*
2  * Arnold API header file
3  * Copyright (c) 1998-2009 Marcos Fajardo, (c) 2009-2013 Solid Angle SL
4  */
5 
11 #pragma once
12 #include "ai_api.h"
13 
14 // forward declarations (defined elsewhere)
15 struct AtShaderGlobals;
16 
24 typedef struct AtSampler AtSampler;
25 
30 
31 AI_API AtSampler* AiSampler(int nsamples, int ndim);
32 AI_API AtSampler* AiSamplerSeeded(int seed, int nsamples, int ndim);
33 AI_API AtSamplerIterator* AiSamplerIterator(const AtSampler* sampler, const AtShaderGlobals* sg);
34 AI_API bool AiSamplerGetSample(AtSamplerIterator* iterator, float* sample);
35 AI_API int AiSamplerGetSampleCount(const AtSamplerIterator* iterator);
36 AI_API float AiSamplerGetSampleInvCount(const AtSamplerIterator* iterator);
37 AI_API void AiSamplerDestroy(AtSampler* sampler);
38 
39 /*\}*/

© 2009-2013 Solid Angle SL · all rights reserved · www.solidangle.com