vertex_format_add_normal()

From ENIGMA
Revision as of 01:56, 18 June 2018 by RobertBColton (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Description

Adds a 3D normal attribute (nx, ny, nz) to the current vertex buffer format being declared. This is equivalent to passing type vertex_type_float3 and usage vertex_usage_normal 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 3d position and normal attributes
vertex_format_begin();
vertex_format_add_position_3d();
vertex_format_add_normal();
vf_position3d_normal = vertex_format_end();