c3context: Added a view draw callback
[simavr] / examples / shared / libc3 / src / c3context.c
index 8a85c93..af8e901 100644 (file)
@@ -148,7 +148,11 @@ c3context_draw(
 {
        c3context_project(c);
 
-       c3geometry_array_p  array = &c3context_view_get(c)->projected;
+       c3context_view_p v = c3context_view_get(c);
+
+       C3_DRIVER(c, context_view_draw, v);
+
+       c3geometry_array_p  array = &v->projected;
        for (int gi = 0; gi < array->count; gi++) {
                c3geometry_p g = array->e[gi];
                c3geometry_draw(g);