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:26
Definition: MaterialInstance.h:6
void setColor(System::String^ name, SharpKmyGfx::Color^ v)
Definition: MaterialInstance.cpp:49
void setVector2(System::String^ name, SharpKmyMath::Vector2^ v)
Definition: MaterialInstance.cpp:37
bool ownptr
Definition: MaterialInstance.h:19
void setInteger(System::String^ name, int v)
Definition: MaterialInstance.cpp:25
void setFloat(System::String^ name, float v)
Definition: MaterialInstance.cpp:31
void setVector3(System::String^ name, SharpKmyMath::Vector3^ v)
Definition: MaterialInstance.cpp:43
MaterialInstance(Material^ mtl)
Definition: MaterialInstance.cpp:7
Material getBaseMaterial()
Definition: MaterialInstance.cpp:60
kmyGfx::MaterialInstance * obj
Definition: MaterialInstance.h:20
~MaterialInstance()
Definition: MaterialInstance.cpp:19
void updateAnimation(f32 delta)
Definition: MaterialInstance.cpp:55
Definition: Billboard.cpp:4
Definition: Vector3.h:186
Definition: Vector3.h:8