#ifndef GFX_H #define GFX_H /** * `x` vertex x * `y` vertex y * `z` vertex z * `s` texture s coordinate * `t` texture t coordinate * `crnx` red component of color vertex, or x component of normal vertex * `cgny` green component of color vertex, or y component of normal vertex * `cbnz` blue component of color vertex, or z component of normal vertex * `a` alpha */ #define VTX(x, y, z, s, t, crnx, cgny, cbnz, a) \ { { { x, y, z }, 0, { s, t }, { crnx, cgny, cbnz, a } }, } #define VTX_T(x, y, z, s, t, cr, cg, cb, a) \ { { x, y, z }, 0, { s, t }, { cr, cg, cb, a }, } #endif