SetMeshMemblockVertexColor
Description
Provides a quick way to modify the color values of a vertex inside a mesh memblock. It uses the attribute data from the beginning of the memblock to work out the vertex offset and change the color values. Vertices start at index 0. Color values must be between 0 and 255.
Definition
SetMeshMemblockVertexColor( memID, vertexIndex, red, green, blue, alpha )
void agk::SetMeshMemblockVertexColor( UINT memID, UINT vertexIndex, int red, int green, int blue, int alpha )
Parameters
- memID - The ID of the memblock to modify
- vertexIndex - The index of the vertex to modify
- red - The new red value for this vertex
- green - The new green value for this vertex
- blue - The new blue value for this vertex
- alpha - The new alpha value for this vertex