Logo
GeometryInstance.h
1#pragma once
2
3namespace XXSharpKmyGfx
4{
5 ref class GeomCluster;
6 ref class MaterialInstance;
7
8 private ref class GeometryInstance
9 {
10 public:
11 GeometryInstance(GeomCluster^ gc, MaterialInstance ^m);
12 GeometryInstance(kmyGfx::GeometryInstance* gi);
13 ~GeometryInstance();
14 void setDisplayID(unsigned int id);
15 unsigned int getDisplayID();
16 void setPickupID(unsigned short id);
17 unsigned short getPickupID();
18 void setVisibility(bool flg);
19 bool getVisibility();
20 void stopPickup(bool flg);
21 void useVAO(bool flg);
22 void invaidateVAO();
23 void boundaryInvalidate() { if (obj)obj->boundaryInvalidate(); }
24 kmyGfx::GeometryInstance* obj = nullptr;
25 MaterialInstance^ getMaterialInstance();
26 private:
27 bool ownptr = false;
28 };
29}