Merge pull request #13 from stenzek/patch-1

Correct polyline terminator documentation in GPU
This commit is contained in:
Nicolas Noble 2021-01-27 20:28:52 -08:00 committed by GitHub
commit d7146c1359
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -230,10 +230,10 @@ Color xxBBGGRR - optional, only present for gouraud shading
Vertex YYYYXXXX - required, two signed 16 bits values Vertex YYYYXXXX - required, two signed 16 bits values
``` ```
When the polyline mode is active, then there is no fixed amount of words When polyline mode is active, at least two vertices must be sent to the GPU.
to be sent. The last word will have a magic value, which will usually be The vertex list is terminated by the bits 12-15 and 28-31 equaling `0x5`, or
55555555, but also sometimes 50005000. Note that the magic value can then `(word & 0xF000F000) == 0x50005000`. The terminator value occurs on the first
either be for the color word, or the vertex word. word of the vertex (i.e. the color word if it's a gouraud shaded).
#### Note #### Note