#ifndef _HAIR_BASE_BSDF_POOL_H_ #define _HAIR_BASE_BSDF_POOL_H_ // Shave and a Haircut // (c) 2019 Epic Games // US Patent 6720962 #include "hairAPIvray.h" #include "shaveVrayBaseBSDF.h" class shaveVrayBaseBSDFPool : public IShaveBSDFPool { public: shaveVrayBaseBSDFPool(){} virtual ~shaveVrayBaseBSDFPool(){} void init(VR::VRayCore *vray); void freeMem(); IShaveVrayBSDF* newBRDF(const VR::VRayContext &rc); void deleteBRDF(const VR::VRayContext &rc, IShaveVrayBSDF* bsdf); protected: inline const VR::BRDFPool& bsdfPool() const {return m_bsdfPool;} inline VR::BRDFPool& _bsdfPool() {return m_bsdfPool;} private: VR::BRDFPool m_bsdfPool; }; #endif