vertex_color(buffer,color,alpha)

From ENIGMA

(Redirected from Vertex colour)
Jump to: navigation, search

Description

Adds color data for the vertex to the given vertex buffer.

Parameters

Parameter Data Type Description
buffer unsigned Index of the vertex buffer.
color integer Color constant or 24-bit $BBGGRR hex value
alpha float Alpha value of the vertex.

Return Values

void: This function does not return anything.

Example Call

// demonstrates adding a vertex with color and alpha to a vertex buffer
vertex_begin(dynamic_buffer, vf_position_color);
vertex_position(dynamic_buffer, x, y);
vertex_color(dynamic_buffer, image_blend, image_alpha);
vertex_end(dynamic_buffer);
Personal tools
Namespaces
Variants
Actions
Navigation
ENIGMA
Other
Toolbox