Logo
MaterialInstance.h
1#pragma once
2
3namespace XXSharpKmyGfx
4{
5 private ref class MaterialInstance
6 {
7 public:
8 MaterialInstance(Material^ mtl);
9 MaterialInstance(kmyGfx::MaterialInstance* ptr);
10 ~MaterialInstance();
11 void setInteger(System::String^ name, int v);
12 void setFloat(System::String^ name, float v);
13 void setVector2(System::String^ name, XXSharpKmyMath::Vector2^ v);
14 void setVector3(System::String^ name, XXSharpKmyMath::Vector3^ v);
15 void setColor(System::String^ name, XXSharpKmyGfx::Color^ v);
16 void updateAnimation(f32 delta);
17 Material^ getBaseMaterial();
18
19 bool ownptr = false;
20 kmyGfx::MaterialInstance* obj = nullptr;
21 };
22}