Interface IVertexMaterial

IVertexMaterial interface

Represents the interface that must be implemented by a material vertex fragment.

public interface IVertexMaterial

Properties

NameDescription
MaxColors { get; }Gets the number of color attributes available in this vertex
MaxTextCoords { get; }Gets the number of texture coordinate attributes available in this vertex

Methods

NameDescription
Add(ref VertexMaterialDelta)
GetColor(int)Gets a color attribute.
GetTexCoord(int)Gets a UV texture coordinate attribute.
SetColor(int, Vector4)Sets a color attribute.
SetTexCoord(int, Vector2)Sets a UV texture coordinate attribute.
Subtract(IVertexMaterial)calculates the difference between this vertex and baseValue

Remarks

Implemented by:

VertexEmpty

VertexColor1

VertexColor2

VertexTexture1

VertexTexture2

VertexColor1Texture1

VertexColor1Texture2

VertexColor2Texture1

VertexColor2Texture2

And also by other custom vertex material fragment types.

See Also