Logo
Primitive.h
1#pragma once
2
3#include "Math/Matrix4.h"
4
5namespace SharpKmyGfx
6{
7 ref class MaterialInstance;
8 ref class GeometryInstance;
9
10 public ref class Primitive
11 {
12 public:
13 void setVisibility(bool flg);
14 //[[deplicated("use setTranslate/setRotate/setScale")]]
15 void setPosture(SharpKmyMath::Matrix4^ posture);
16 void setDisplayID(unsigned int id);
17 void setPickupID(unsigned short id);
18 void stopPickup(bool flg);
19 void setDrawHidden(bool flg);
20 void setOverrideColor(float r, float g, float b, float a);
21 void setOpacityMultiplier(float p);
24
25 kmyGfx::Primitive* obj = nullptr;
26 };
27}
Definition: GeometryInstance.h:9
Definition: MaterialInstance.h:6
Definition: Primitive.h:11
GeometryInstance getGeometryInstance()
Definition: Primitive.cpp:77
void setVisibility(bool flg)
Definition: Primitive.cpp:5
kmyGfx::Primitive * obj
Definition: Primitive.h:25
void setPickupID(unsigned short id)
Definition: Primitive.cpp:34
void setOverrideColor(float r, float g, float b, float a)
Definition: Primitive.cpp:52
void stopPickup(bool flg)
Definition: Primitive.cpp:40
void setPosture(SharpKmyMath::Matrix4^ posture)
Definition: Primitive.cpp:11
void setDrawHidden(bool flg)
Definition: Primitive.cpp:46
MaterialInstance getMaterialInstance()
Definition: Primitive.cpp:65
void setOpacityMultiplier(float p)
Definition: Primitive.cpp:58
void setDisplayID(unsigned int id)
Definition: Primitive.cpp:28
Definition: Matrix4.h:12
Definition: Asset.h:4