|
libacfutils
A general purpose library of utility functions designed to make it easier to develop addons for the X-Plane flight simulator.
|
#include <glutils.h>
Data Fields | |
| GLuint | vao |
| GLuint | vbo |
| GLuint | ibo |
| bool_t | setup |
| size_t | num_vtx |
Utility system to emulate GL_QUADS drawing using modern OpenGL core functionality. This object encapsulates the GPU-side buffers to draw a number of quads, with automatic triangulation and support for the programmable shader pipeline.
Use glutils_init_2D_quads() or glutils_init_3D_quads() to initialize a new quads object. You can then render the quads using glutils_draw_quads(). If you want to update the vertex data of the quads, use glutils_update_2D_quads() or glutils_update_3D_quads(). Use glutils_destroy_quads() to destroy the object if you don't need it anymore.