summaryrefslogtreecommitdiffstats
path: root/src/mesa/vbo
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2018-01-12 10:28:14 -0700
committerBrian Paul <[email protected]>2018-01-17 11:17:56 -0700
commitad3b162b8165d9f72e7014671cf4ad64541474d6 (patch)
treed72d0da5214dc437dc4d25d37eb91c5f215938fe /src/mesa/vbo
parentee86c346640367ddcb7ecea302c8e919e8207e27 (diff)
vbo: add some comments in vbo_save_api.c
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/vbo')
-rw-r--r--src/mesa/vbo/vbo_save_api.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/mesa/vbo/vbo_save_api.c b/src/mesa/vbo/vbo_save_api.c
index 8eb38464781..42d883fed4d 100644
--- a/src/mesa/vbo/vbo_save_api.c
+++ b/src/mesa/vbo/vbo_save_api.c
@@ -1559,6 +1559,9 @@ vbo_save_SaveFlushVertices(struct gl_context *ctx)
}
+/**
+ * Called from glNewList when we're starting to compile a display list.
+ */
void
vbo_save_NewList(struct gl_context *ctx, GLuint list, GLenum mode)
{
@@ -1581,6 +1584,9 @@ vbo_save_NewList(struct gl_context *ctx, GLuint list, GLenum mode)
}
+/**
+ * Called from glEndList when we're finished compiling a display list.
+ */
void
vbo_save_EndList(struct gl_context *ctx)
{
@@ -1615,6 +1621,10 @@ vbo_save_EndList(struct gl_context *ctx)
}
+/**
+ * Called from the display list code when we're about to execute a
+ * display list.
+ */
void
vbo_save_BeginCallList(struct gl_context *ctx, struct gl_display_list *dlist)
{
@@ -1623,6 +1633,10 @@ vbo_save_BeginCallList(struct gl_context *ctx, struct gl_display_list *dlist)
}
+/**
+ * Called from the display list code when we're finished executing a
+ * display list.
+ */
void
vbo_save_EndCallList(struct gl_context *ctx)
{
@@ -1637,6 +1651,9 @@ vbo_save_EndCallList(struct gl_context *ctx)
}
+/**
+ * Called by display list code when a display list is being deleted.
+ */
static void
vbo_destroy_vertex_list(struct gl_context *ctx, void *data)
{