aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/draw.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2020-02-10 20:47:11 -0500
committerMarek Olšák <[email protected]>2020-02-18 16:45:50 -0500
commitee549c67668289e262243b6549a5faf230aa0fd6 (patch)
treeeb7b877b629bde41431827e893ab450cc5bf75c5 /src/mesa/main/draw.h
parentc9246282b75500aa4e9fe926930cff1314f49607 (diff)
mesa: document _mesa_prim::begin/end
Reviewed-by: Mathias Fröhlich <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3861>
Diffstat (limited to 'src/mesa/main/draw.h')
-rw-r--r--src/mesa/main/draw.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mesa/main/draw.h b/src/mesa/main/draw.h
index 8fa511ef0a3..528696de60f 100644
--- a/src/mesa/main/draw.h
+++ b/src/mesa/main/draw.h
@@ -44,7 +44,19 @@ struct _mesa_prim
{
GLubyte mode; /**< GL_POINTS, GL_LINES, GL_QUAD_STRIP, etc */
bool indexed;
+
+ /**
+ * tnl: If true, line stipple emulation will reset the pattern walker.
+ * vbo: If false and the primitive is a line loop, the first vertex is
+ * the beginning of the line loop and it won't be drawn.
+ * Instead, it will be moved to the end.
+ */
bool begin;
+
+ /**
+ * tnl: If true and the primitive is a line loop, it will be closed.
+ * vbo: Same as tnl.
+ */
bool end;
GLuint start;