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
Data Fields
glutils_quads_t Struct Reference

#include <glutils.h>

Data Fields

GLuint vao
 
GLuint vbo
 
GLuint ibo
 
bool_t setup
 
size_t num_vtx
 

Detailed Description

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.

See also
glutils_init_2D_quads()
glutils_init_3D_quads()
glutils_update_2D_quads()
glutils_update_3D_quads()
glutils_draw_quads()
glutils_destroy_quads()

Definition at line 79 of file glutils.h.

Field Documentation

◆ ibo

GLuint ibo

Definition at line 82 of file glutils.h.

◆ num_vtx

size_t num_vtx

Definition at line 84 of file glutils.h.

◆ setup

bool_t setup

Definition at line 83 of file glutils.h.

◆ vao

GLuint vao

Definition at line 80 of file glutils.h.

◆ vbo

GLuint vbo

Definition at line 81 of file glutils.h.


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