Class WidgetMaterial
- Namespace
- Lime
- Assembly
- Lime.dll
public class WidgetMaterial : IMaterial
- Inheritance
-
WidgetMaterial
- Implements
-
- Inherited Members
-
Fields
public readonly Blending Blending
Field Value
- Blending
public static readonly IMaterial Diffuse
Field Value
- IMaterial
public readonly bool PremulAlpha
Field Value
- bool
public readonly ShaderProgram ShaderProgram
Field Value
- ShaderProgram
Properties
public string Id { get; set; }
Property Value
- string
public int PassCount { get; }
Property Value
- int
Methods
public void Apply(int pass)
Parameters
pass
int
GetInstance(Blending, ShaderId, int, TextureBlending, bool)
public static WidgetMaterial GetInstance(Blending blending, ShaderId shader, int numTextures, TextureBlending textureBlending = TextureBlending.Multiply, bool premulAlpha = false)
Parameters
blending
Blending
shader
ShaderId
numTextures
int
textureBlending
TextureBlending
premulAlpha
bool
Returns
- WidgetMaterial
GetNumTextures(ITexture, ITexture)
public static int GetNumTextures(ITexture texture1, ITexture texture2)
Parameters
texture1
ITexture
texture2
ITexture
Returns
- int