#ifndef _SAMPLER_STATE_H #define _SAMPLER_STATE_H #include "common.h" enum SampleMode { RAVEN_LINEAR_SAMPLE, RAVEN_NEAREST_SAMPLE, RAVEN_MIPMAP_SAMPLE }; enum SampleWrap { RAVEN_WRAP, RAVEN_CLAMP, RAVEN_CLAMP_TO_EDGE }; struct SamplerState { int aniso; SampleMode minmode; SampleMode magmode; SampleWrap wraps,wrapt,wrapr; SamplerState(const SamplerState &samp) { this->aniso=samp.aniso; this->minmode=samp.minmode; this->magmode=samp.magmode; this->wraps=samp.wraps; this->wrapt=samp.wrapt; this->wrapr=samp.wrapr; } SamplerState(int aniso=0,SampleMode minmode=RAVEN_LINEAR_SAMPLE, SampleMode magmode=RAVEN_LINEAR_SAMPLE,SampleWrap wraps=RAVEN_CLAMP, SampleWrap wrapt=RAVEN_CLAMP,SampleWrap wrapr=RAVEN_CLAMP): aniso(aniso), minmode(minmode), magmode(magmode), wraps(wraps), wrapt(wrapt), wrapr(wrapr) {} }; #endif