Logo
Public Member Functions | Public Attributes | List of all members
SharpKmyGfx::MaterialInstance Class Reference

#include <MaterialInstance.h>

Public Member Functions

 MaterialInstance (Material^ mtl)
 
 MaterialInstance (kmyGfx::MaterialInstance *ptr)
 
 ~MaterialInstance ()
 
void setInteger (System::String^ name, int v)
 
void setFloat (System::String^ name, float v)
 
void setVector2 (System::String^ name, SharpKmyMath::Vector2^ v)
 
void setVector3 (System::String^ name, SharpKmyMath::Vector3^ v)
 
void setColor (System::String^ name, SharpKmyGfx::Color^ v)
 
void updateAnimation (f32 delta)
 
Material getBaseMaterial ()
 

Public Attributes

bool ownptr = false
 
kmyGfx::MaterialInstance * obj = nullptr
 

Constructor & Destructor Documentation

◆ MaterialInstance() [1/2]

SharpKmyGfx::MaterialInstance::MaterialInstance ( Material mtl)

◆ MaterialInstance() [2/2]

SharpKmyGfx::MaterialInstance::MaterialInstance ( kmyGfx::MaterialInstance *  ptr)

◆ ~MaterialInstance()

SharpKmyGfx::MaterialInstance::~MaterialInstance ( )

Member Function Documentation

◆ getBaseMaterial()

Material SharpKmyGfx::MaterialInstance::getBaseMaterial ( )

◆ setColor()

void SharpKmyGfx::MaterialInstance::setColor ( System::String^  name,
SharpKmyGfx::Color v 
)

◆ setFloat()

void SharpKmyGfx::MaterialInstance::setFloat ( System::String^  name,
float  v 
)

◆ setInteger()

void SharpKmyGfx::MaterialInstance::setInteger ( System::String^  name,
int  v 
)

◆ setVector2()

void SharpKmyGfx::MaterialInstance::setVector2 ( System::String^  name,
SharpKmyMath::Vector2 v 
)

◆ setVector3()

void SharpKmyGfx::MaterialInstance::setVector3 ( System::String^  name,
SharpKmyMath::Vector3 v 
)

◆ updateAnimation()

void SharpKmyGfx::MaterialInstance::updateAnimation ( f32  delta)

Member Data Documentation

◆ obj

kmyGfx::MaterialInstance* SharpKmyGfx::MaterialInstance::obj = nullptr

◆ ownptr

bool SharpKmyGfx::MaterialInstance::ownptr = false