engine::graphics::Vertex2D struct

This layout must perfectly match the layout defined in the PrimitiveRenderer's shader.

Location 0: Position (vec2) Location 1: Color (vec4) Location 2: TexCoord (vec2) Location 3: TexIndex (float)

Public variables

float position
[x, y] coordinates.
float color
[r, g, b, a] color.
float tex_coords
[u, v] texture coordinates.
float tex_index
Index into the texture slots array.