URL: https://graphicscomputing.fr/cgp/reference/curve_drawable/
Description: Polyline stored on the GPU, ready to be drawn.

# curve_drawable

Polyline stored on the GPU, ready to be drawn.

Fields:

- `curve_drawable_display_type display_type` - Drawing mode, Curve (default) for a GL_LINE_STRIP joining all the points, or Segments for GL_LINES between consecutive pairs of points.
- `opengl_shader_structure shader` - Shader program used to draw the curve, which must be valid (non-zero id) at draw time.
- `opengl_vbo_structure vbo_position` - VBO storing the positions of the curve points, bound to shader location 0.
- `GLuint vao` - OpenGL id of the Vertex Array Object of the curve, 0 when not initialized.
- `affine model` - Model transform sent to the uniform model, reset to identity by initialize_data_on_gpu and clear.
- `vec3 color` - Uniform RGB color of the curve sent to the uniform color, set to red by initialize_data_on_gpu.
- `opengl_shader_structure default_shader` - Static shader shared by all curve_drawable and used by default in initialize_data_on_gpu, loaded from shaders/single_color by the application.

Functions taking it:

- `void draw(curve_drawable const& drawable, environment_generic_structure const& environment, int N_points = -1)` - Draw a curve_drawable as a line strip or as separate segments, limited to the first N_points points if N_points is not -1.
