aboutsummaryrefslogtreecommitdiff
path: root/vrayPlug/plugin/shaveVrayBaseBSDFPool.h
diff options
context:
space:
mode:
authorBen Marsh <[email protected]>2019-10-22 09:07:59 -0400
committerBen Marsh <[email protected]>2019-10-22 09:07:59 -0400
commitbd0027e737c6512397f841c22786274ed74b927f (patch)
treef7ffbdb8f3741bb7f24635616cc189cba5cb865c /vrayPlug/plugin/shaveVrayBaseBSDFPool.h
downloadshave-and-a-haircut-bd0027e737c6512397f841c22786274ed74b927f.tar.xz
shave-and-a-haircut-bd0027e737c6512397f841c22786274ed74b927f.zip
Adding Shave-and-a-Haircut 9.6
Diffstat (limited to 'vrayPlug/plugin/shaveVrayBaseBSDFPool.h')
-rw-r--r--vrayPlug/plugin/shaveVrayBaseBSDFPool.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/vrayPlug/plugin/shaveVrayBaseBSDFPool.h b/vrayPlug/plugin/shaveVrayBaseBSDFPool.h
new file mode 100644
index 0000000..d8968cb
--- /dev/null
+++ b/vrayPlug/plugin/shaveVrayBaseBSDFPool.h
@@ -0,0 +1,30 @@
+#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<shaveVrayBaseBSDF>& bsdfPool() const {return m_bsdfPool;}
+ inline VR::BRDFPool<shaveVrayBaseBSDF>& _bsdfPool() {return m_bsdfPool;}
+private:
+ VR::BRDFPool<shaveVrayBaseBSDF> m_bsdfPool;
+};
+
+
+#endif