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

Public Member Functions

 MaterialInstance (IntPtr obj)
 
 MaterialInstance (Material mtl)
 
void Dispose ()
 
void Dispose (bool disposing)
 
void setInteger (string name, int v)
 
void setFloat (string name, float v)
 
void setVector2 (string name, SharpKmyMath.Vector2 v)
 
void setVector3 (string name, SharpKmyMath.Vector3 v)
 
void setColor (string name, SharpKmyGfx.Color v)
 
void updateAnimation (float delta)
 
Material getBaseMaterial ()
 

Public Attributes

IntPtr _native = IntPtr.Zero
 

Constructor & Destructor Documentation

◆ MaterialInstance() [1/2]

SharpKmyGfx.MaterialInstance.MaterialInstance ( IntPtr  obj)

◆ MaterialInstance() [2/2]

SharpKmyGfx.MaterialInstance.MaterialInstance ( Material  mtl)

Member Function Documentation

◆ Dispose() [1/2]

void SharpKmyGfx.MaterialInstance.Dispose ( )

◆ Dispose() [2/2]

void SharpKmyGfx.MaterialInstance.Dispose ( bool  disposing)

◆ getBaseMaterial()

Material SharpKmyGfx.MaterialInstance.getBaseMaterial ( )

◆ setColor()

void SharpKmyGfx.MaterialInstance.setColor ( string  name,
SharpKmyGfx.Color  v 
)

◆ setFloat()

void SharpKmyGfx.MaterialInstance.setFloat ( string  name,
float  v 
)

◆ setInteger()

void SharpKmyGfx.MaterialInstance.setInteger ( string  name,
int  v 
)

◆ setVector2()

void SharpKmyGfx.MaterialInstance.setVector2 ( string  name,
SharpKmyMath.Vector2  v 
)

◆ setVector3()

void SharpKmyGfx.MaterialInstance.setVector3 ( string  name,
SharpKmyMath.Vector3  v 
)

◆ updateAnimation()

void SharpKmyGfx.MaterialInstance.updateAnimation ( float  delta)

Member Data Documentation

◆ _native

IntPtr SharpKmyGfx.MaterialInstance._native = IntPtr.Zero