Flint Engine
Modular C++20 2D game engine powered by SDL3
Loading...
Searching...
No Matches
Flint::GPULineVertex Struct Reference

Internal vertex structure sent directly to line/point primitive shaders. More...

#include <flint/graphics/types/batch-vertex.h>

+ Collaboration diagram for Flint::GPULineVertex:

Public Attributes

float pos [2]
 Normalized device coordinates (NDC) in range [-1, 1].
 
float color [4]
 Normalized RGBA color channels in range [0.0, 1.0].
 

Detailed Description

Internal vertex structure sent directly to line/point primitive shaders.

Unlike the public PrimitiveVertex type, GPULineVertex holds normalized device coordinates (NDC) and float-based RGBA channels prepared by the RenderQueue transformation pass.

See also
PrimitiveVertex

Definition at line 47 of file batch-vertex.h.


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