libacfutils
A general purpose library of utility functions designed to make it easier to develop addons for the X-Plane flight simulator.
Loading...
Searching...
No Matches
glutils_nl_t Struct Reference

Detailed Description

This is a replacement for the obsolete GL_LINES rendering type in OpenGL, using new OpenGL core profile features only. The nl in the name means "new lines" (to differentiate it from the deprecated glutils_lines_t, which relied on outdated GL_LINE_STRIP functionality in the OpenGL driver).

To set up a glutils_nl_t, use glutils_nl_alloc_2D() or glutils_nl_alloc_3D(), with a series of 2D or 3D points, which will form the end points of the lines. You can then use glutils_nl_draw() to make the lines render. Finally, to free the vertex buffers associated with the lines, use glutils_nl_free().

Please note that the points you pass are treated as separate line segments, rather a single continuous line strip. For example, if you want to draw a line strip consisting of two line segments, you will need to pass four points, not three.

See also
glutils_nl_alloc_2D()
glutils_nl_alloc_3D()
glutils_nl_draw()
glutils_nl_free()

The documentation for this struct was generated from the following file: