1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
#ifndef _HAIR_VRAY_INSTANCE_instanced_H_
#define _HAIR_VRAY_INSTANCE_instanced_H_
// Shave and a Haircut
// (c) 2019 Epic Games
// US Patent 6720962
/**********************************************************************
*<
FILE: shaveVrayInstanceI.h
DESCRIPTION: VRay instance for instnaced hair
CREATED BY: Vladimir Dubovoy <[email protected]>
HISTORY: created 11-05-2010
*>
**********************************************************************/
// V-Ray headers
#include "vraybase.h"
#include "vraymayageom.h"
#include "vrayplugins.h"
#include "geometryclasses.h"
//own headers
#include "hairAPIvrayutil.h"
#include "shaveVrayPlugin.h"
#include "shaveVrayVoxelPrim.h"
#include "shaveVrayInstanceBase.h"
class shaveVrayInstanceI :
#if defined VRAY30
public VR::BaseMeshInstance,
#elif defined(VRAY40)
public VR::BaseInstance,
#endif
public shaveVrayInstanceBase{
public:
//shaveVrayPlugin *plugin; //goes to base
shaveVrayInstanceI(shaveVrayPlugin *plugin,
VR::MaterialInterface *mtl, VR::BSDFInterface *bsdf, int renderID,
VR::VolumetricInterface *volume, VR::LightList *lightList,
#if defined(VRAY30)
const VR::TraceTransform &baseTM,
#elif defined(VRAY40)
const VR::Transform &baseTM,
#endif
int objectID,
const tchar *userAttributes, int primaryVisibility);
void compileGeometry(VR::VRayRenderer *vray,
#if defined(VRAY30)
VR::TraceTransform *tm,
#elif defined(VRAY40)
const VR::Transform *tm,
#endif
double *times, int tmCount) VRAY_OVERRIDE;
void clearGeometry(VR::VRayRenderer *vray) VRAY_OVERRIDE;
//void freeMem();
//VR::Transform GetItm0() const {return itm[0];}
bool GetSquirrel() const {return false;}
protected:
////const member access
//inline const std::vector<shaveVrayVoxelPrim*>& voxprims() const {return m_voxprims;}
//inline shaveVrayVoxelPrim* voxprim(unsigned int i) const {return m_voxprims[i];}
//inline int stackid() const {return m_stackid;}
//inline IHairNode* hair() const {return m_hair;}
////member access
//inline std::vector<shaveVrayVoxelPrim*>& _voxprims() {return m_voxprims;}
//inline shaveVrayVoxelPrim*& _voxprim(unsigned int i){return m_voxprims[i];}
//inline int& _stackid() {return m_stackid;}
//inline IHairNode*& _hair() {return m_hair;}
private:
////moving or static primiteves
//std::vector<shaveVrayVoxelPrim*> m_voxprims;
//int m_stackid;
//IHairNode* m_hair;
};
#endif //end of_HAIR_VRAY_INSTANCE_instanced_H_
|