vertex_normal(buffer,nx,ny,nz)

From ENIGMA

Jump to: navigation, search

Description

Adds a normal to the current vertex in the given vertex buffer.

Parameters

Parameter Data Type Description
buffer integer Index of the vertex buffer.
nx gs_scalar x coordinate of the normal to add
ny gs_scalar y coordinate of the normal to add
nz gs_scalar z coordinate of the normal to add

Return Values

void: This function does not return anything.

Example Call

// demonstrates adding a vertex with a normal vector to a vertex buffer
vertex_begin(static_buffer, vf_position3d_normal_color);
vertex_position_3d(static_buffer, x, y, z);
vertex_normal(static_buffer, nx, ny, nz);
vertex_color(static_buffer, color, alpha);
vertex_end(static_buffer);
Personal tools
Namespaces
Variants
Actions
Navigation
ENIGMA
Other
Toolbox