vertex_format_add_textcoord()

From ENIGMA

Jump to: navigation, search

Description

Adds a 2D texture coordinate attribute (u, v) to the current vertex buffer format being declared. This is equivalent to passing type vertex_type_float2 and usage vertex_usage_textcoord 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 texture attributes
vertex_format_begin();
vertex_format_add_position();
vertex_format_add_textcoord();
vf_position_textcoord = vertex_format_end();
Personal tools
Namespaces
Variants
Actions
Navigation
ENIGMA
Other
Toolbox