s3d_pep_line_normals(3)

s3d_pep_line_normals3

Add normals to lines

Usage

#include <s3d.h>

int s3d_pep_line_normals(int object, const float *nbuf, uint16_t n);

Overview

Adds normal information to lines, giving each vertex of a line a normal information. This makes lines somewhat nicer, you'll need that especially when you're going to build wireframe models.

nbuf should contain n * 6 float values, for each vertex a normal vector (x,y,z), and you have 2 vertices for each line so that makes 6 float values per line in total.

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 1 time.

  1. 6.0
  2. 7–13

Author

Simon Wunderlich

Author of s3d

From s3d-doc 0.2.2.1-7 in Debian 13 (Trixie). Parsed by carta from the page's man source.