|
AvogadroLibs 1.103.0
|
Packed vertex structure for efficient GPU transfer. More...
#include <avogadro/rendering/packedvertex.h>
Public Member Functions | |
| PackedVertex (const Vector4ub &c, const Vector3f &n, const Vector3f &v) | |
Static Public Member Functions | |
| static int | colorOffset () |
| static int | normalOffset () |
| static int | vertexOffset () |
Public Attributes | |
| Vector4ub | color |
| Vector3f | normal |
| Vector3f | vertex |
| unsigned char | padding [4] |
This structure packs color, normal, and vertex data into a 32-byte aligned format that is ideal for GPU memory access patterns.