Falco Engine 3.9.0.1 (beta)
FalcoEngine.Material Class Reference
Inheritance diagram for FalcoEngine.Material:
FalcoEngine.Asset

Public Member Functions

 Material (string name)
 Create a new material and set its name More...
 
void GetParameter (string name, out Matrix3 matrix)
 Get value of the parameter More...
 
void GetParameter (string name, out Matrix4 matrix)
 Get value of the parameter More...
 
void GetParameter (string name, out Vector2 vector2)
 Get value of the parameter More...
 
void GetParameter (string name, out Vector3 vector3)
 Get value of the parameter More...
 
void GetParameter (string name, out Vector4 vector4)
 Get value of the parameter More...
 
void GetParameter (string name, out float flt)
 Get value of the parameter More...
 
void GetParameter (string name, out int val)
 Get value of the parameter More...
 
void GetParameter (string name, out bool val)
 Get value of the parameter More...
 
void GetParameter (string name, out Color color)
 Get value of the parameter More...
 
void GetParameter (string name, out Texture texture)
 Get value of the parameter More...
 
GetParameter< T > (string name)
 Get value of the parameter More...
 
void SetParameter (string name, Matrix3 matrix)
 Set value of the parameter More...
 
void SetParameter (string name, Matrix4 matrix)
 Set value of the parameter More...
 
void SetParameter (string name, Vector2 vector2)
 Set value of the parameter More...
 
void SetParameter (string name, Vector3 vector3)
 Set value of the parameter More...
 
void SetParameter (string name, Vector4 vector4)
 Set value of the parameter More...
 
void SetParameter (string name, float flt)
 Set value of the parameter More...
 
void SetParameter (string name, int val)
 Set value of the parameter More...
 
void SetParameter (string name, bool val)
 Set value of the parameter More...
 
void SetParameter (string name, Color color)
 Set value of the parameter More...
 
void SetParameter (string name, Texture texture)
 Set value of the parameter More...
 

Static Public Member Functions

static Material Load (string name)
 Load existing material More...
 

Properties

Shader shader [getset]
 Get or set a shader for this material More...
 
- Properties inherited from FalcoEngine.Asset
string name [get]
 Get asset name More...
 

Detailed Description

Definition at line 7 of file Material.cs.

Constructor & Destructor Documentation

◆ Material()

FalcoEngine.Material.Material ( string  name)

Create a new material and set its name

Parameters
nameName for the new material

Member Function Documentation

◆ GetParameter() [1/10]

void FalcoEngine.Material.GetParameter ( string  name,
out bool  val 
)

Get value of the parameter

Parameters
nameParameter name
valBoolean value

Definition at line 110 of file Material.cs.

◆ GetParameter() [2/10]

void FalcoEngine.Material.GetParameter ( string  name,
out Color  color 
)

Get value of the parameter

Parameters
nameParameter name
colorColor value

Definition at line 120 of file Material.cs.

◆ GetParameter() [3/10]

void FalcoEngine.Material.GetParameter ( string  name,
out float  flt 
)

Get value of the parameter

Parameters
nameParameter name
fltFloat value

Definition at line 90 of file Material.cs.

◆ GetParameter() [4/10]

void FalcoEngine.Material.GetParameter ( string  name,
out int  val 
)

Get value of the parameter

Parameters
nameParameter name
valInt value

Definition at line 100 of file Material.cs.

◆ GetParameter() [5/10]

void FalcoEngine.Material.GetParameter ( string  name,
out Matrix3  matrix 
)

Get value of the parameter

Parameters
nameParameter name
matrixMatrix3 value

Definition at line 40 of file Material.cs.

◆ GetParameter() [6/10]

void FalcoEngine.Material.GetParameter ( string  name,
out Matrix4  matrix 
)

Get value of the parameter

Parameters
nameParameter name
matrixMatrix4 value

Definition at line 50 of file Material.cs.

◆ GetParameter() [7/10]

void FalcoEngine.Material.GetParameter ( string  name,
out Texture  texture 
)

Get value of the parameter

Parameters
nameParameter name
textureTexture value

Definition at line 130 of file Material.cs.

◆ GetParameter() [8/10]

void FalcoEngine.Material.GetParameter ( string  name,
out Vector2  vector2 
)

Get value of the parameter

Parameters
nameParameter name
vector2Vector2 value

Definition at line 60 of file Material.cs.

◆ GetParameter() [9/10]

void FalcoEngine.Material.GetParameter ( string  name,
out Vector3  vector3 
)

Get value of the parameter

Parameters
nameParameter name
vector3Vector3 value

Definition at line 70 of file Material.cs.

◆ GetParameter() [10/10]

void FalcoEngine.Material.GetParameter ( string  name,
out Vector4  vector4 
)

Get value of the parameter

Parameters
nameParameter name
vector4Vector4 value

Definition at line 80 of file Material.cs.

◆ GetParameter< T >()

T FalcoEngine.Material.GetParameter< T > ( string  name)

Get value of the parameter

Template Parameters
TParameter type
Parameters
nameParameter name
Returns

Definition at line 143 of file Material.cs.

◆ Load()

static Material FalcoEngine.Material.Load ( string  name)
static

Load existing material

Parameters
nameName of the existing material
Returns
Loaded material

Definition at line 23 of file Material.cs.

◆ SetParameter() [1/10]

void FalcoEngine.Material.SetParameter ( string  name,
bool  val 
)

Set value of the parameter

Parameters
nameParameter name
valBoolean value

Definition at line 285 of file Material.cs.

◆ SetParameter() [2/10]

void FalcoEngine.Material.SetParameter ( string  name,
Color  color 
)

Set value of the parameter

Parameters
nameParameter name
colorColor value

Definition at line 295 of file Material.cs.

◆ SetParameter() [3/10]

void FalcoEngine.Material.SetParameter ( string  name,
float  flt 
)

Set value of the parameter

Parameters
nameParameter name
fltFloat value

Definition at line 265 of file Material.cs.

◆ SetParameter() [4/10]

void FalcoEngine.Material.SetParameter ( string  name,
int  val 
)

Set value of the parameter

Parameters
nameParameter name
valInt value

Definition at line 275 of file Material.cs.

◆ SetParameter() [5/10]

void FalcoEngine.Material.SetParameter ( string  name,
Matrix3  matrix 
)

Set value of the parameter

Parameters
nameParameter name
matrixMatrix3 value

Definition at line 215 of file Material.cs.

◆ SetParameter() [6/10]

void FalcoEngine.Material.SetParameter ( string  name,
Matrix4  matrix 
)

Set value of the parameter

Parameters
nameParameter name
matrixMatrix4 value

Definition at line 225 of file Material.cs.

◆ SetParameter() [7/10]

void FalcoEngine.Material.SetParameter ( string  name,
Texture  texture 
)

Set value of the parameter

Parameters
nameParameter name
textureTexture value

Definition at line 305 of file Material.cs.

◆ SetParameter() [8/10]

void FalcoEngine.Material.SetParameter ( string  name,
Vector2  vector2 
)

Set value of the parameter

Parameters
nameParameter name
vector2Vector2 value

Definition at line 235 of file Material.cs.

◆ SetParameter() [9/10]

void FalcoEngine.Material.SetParameter ( string  name,
Vector3  vector3 
)

Set value of the parameter

Parameters
nameParameter name
vector3Vector3 value

Definition at line 245 of file Material.cs.

◆ SetParameter() [10/10]

void FalcoEngine.Material.SetParameter ( string  name,
Vector4  vector4 
)

Set value of the parameter

Parameters
nameParameter name
vector4Vector4 value

Definition at line 255 of file Material.cs.

Property Documentation

◆ shader

Shader FalcoEngine.Material.shader
getset

Get or set a shader for this material

Definition at line 31 of file Material.cs.


The documentation for this class was generated from the following file: