Logo
MaterialInstance.h
1#pragma once
2
3namespace SharpKmyGfx
4{
5 public ref class MaterialInstance
6 {
7 public:
9 MaterialInstance(kmyGfx::MaterialInstance* ptr);
11 void setInteger(System::String^ name, int v);
12 void setFloat(System::String^ name, float v);
13 void setVector2(System::String^ name, SharpKmyMath::Vector2^ v);
14 void setVector3(System::String^ name, SharpKmyMath::Vector3^ v);
15 void setColor(System::String^ name, SharpKmyGfx::Color^ v);
16 void updateAnimation(f32 delta);
18
19 bool ownptr = false;
20 kmyGfx::MaterialInstance* obj = nullptr;
21 };
22}
Definition: Color.h:5
Definition: Material.h:6
Definition: MaterialInstance.h:6
void setColor(System::String^ name, SharpKmyGfx::Color^ v)
Definition: MaterialInstance.cpp:63
void setVector2(System::String^ name, SharpKmyMath::Vector2^ v)
Definition: MaterialInstance.cpp:47
bool ownptr
Definition: MaterialInstance.h:19
void setInteger(System::String^ name, int v)
Definition: MaterialInstance.cpp:31
void setFloat(System::String^ name, float v)
Definition: MaterialInstance.cpp:39
void setVector3(System::String^ name, SharpKmyMath::Vector3^ v)
Definition: MaterialInstance.cpp:55
MaterialInstance(Material^ mtl)
Definition: MaterialInstance.cpp:7
Material getBaseMaterial()
Definition: MaterialInstance.cpp:78
kmyGfx::MaterialInstance * obj
Definition: MaterialInstance.h:20
~MaterialInstance()
Definition: MaterialInstance.cpp:23
void updateAnimation(f32 delta)
Definition: MaterialInstance.cpp:71
Definition: Asset.h:4
Definition: Vector2.h:5
Definition: Vector3.h:7