vertex_format_add_position()

From ENIGMA

Jump to: navigation, search

Description

Adds a 2D position attribute (x, y) to the current vertex buffer format being declared. This is equivalent to passing type vertex_type_float2 and usage vertex_usage_position 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 2d position and 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