vertex_format_add_color()

From ENIGMA

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

Description

Adds a color attribute to the current vertex buffer format being declared. This is equivalent to passing type vertex_type_color and usage vertex_usage_color to vertex_format_add_custom.

Parameters

Parameter Description
none This function has no parameters.

Return Values

void: This function does not return anything.

Example Call

// demonstrates beginning and ending a new vertex format with color attributes
vertex_format_begin();
vertex_format_add_position();
vertex_format_add_color();
vf_position_color = vertex_format_end();
Personal tools
Namespaces
Variants
Actions
Navigation
ENIGMA
Other
Toolbox