Robert Bragg
8cf76ee36b
primitive: Add n_indices arg to _set_indices function
...
When associating indices with a CoglPrimitive you are now forced to
specify the number of indices that should be read when drawing.
It's easy to forget to call cogl_primitive_set_n_vertices() after
associating indices with a primitive (and anyway you can see that someone
could be led to believe Cogl can determine that implicitly somewhow) so
this should avoid a lot of mistakes with using the API.
We'd expect that setting indices and updating the n_vertices property
would go hand in hand 99% of the time anyway so this change should
be more convenient as well as less error prone.
This patch adds some documentation for cogl_primitive_set_indices and
cogl_primitive_get/set_n_vertices. It also tries to clarify how the
CoglPrimitive:n_vertices property is updated and what that property
means in relation to other functions too.
https://bugzilla.gnome.org/show_bug.cgi?id=661019
Reviewed-by: Neil Roberts <neil@linux.intel.com>
2011-11-01 12:03:03 +00:00
..
2011-11-01 12:03:02 +00:00
2011-11-01 12:03:03 +00:00
2011-09-09 15:06:31 +01:00
2011-11-01 12:03:02 +00:00
2011-09-09 15:06:31 +01:00
2011-11-01 12:03:03 +00:00
2011-07-08 15:35:51 +01:00
2011-05-16 14:31:31 +01:00
2011-11-01 12:03:01 +00:00
2011-05-16 14:31:31 +01:00
2011-09-21 15:39:46 +01:00
2011-11-01 12:03:02 +00:00
2011-05-16 14:32:37 +01:00
2011-11-01 12:03:02 +00:00
2011-07-25 22:45:24 +01:00
2011-11-01 12:03:02 +00:00
2011-07-25 22:45:24 +01:00
2011-09-05 17:54:46 +01:00
2011-11-01 12:03:02 +00:00
2011-08-12 15:28:43 +01:00
2011-11-01 12:03:02 +00:00
2011-08-12 15:28:43 +01:00
2011-11-01 12:03:02 +00:00
2011-11-01 12:02:59 +00:00
2011-08-12 15:28:43 +01:00
2011-11-01 12:03:02 +00:00
2011-11-01 12:03:02 +00:00
2011-11-01 12:03:02 +00:00
2011-08-12 15:28:42 +01:00
2011-08-12 15:28:42 +01:00
2011-11-01 12:03:01 +00:00
2011-11-01 12:03:02 +00:00
2011-09-05 17:54:46 +01:00
2011-10-14 13:56:51 +01:00
2011-10-14 13:56:51 +01:00
2011-08-12 15:28:42 +01:00
2011-06-01 20:44:42 +01:00
2011-05-16 18:45:51 +01:00
2011-11-01 12:03:02 +00:00
2011-11-01 12:03:01 +00:00
2011-07-29 11:50:15 +01:00
2011-11-01 12:03:02 +00:00
2011-09-06 11:19:20 +01:00
2011-11-01 12:03:02 +00:00
2011-10-28 19:10:16 +01:00
2011-07-27 16:10:02 +01:00
2011-07-27 16:10:02 +01:00
2011-07-27 18:46:36 +01:00
2011-11-01 12:03:03 +00:00
2011-11-01 12:03:03 +00:00
2011-11-01 12:03:03 +00:00
2011-06-30 14:34:33 +01:00
2011-07-27 16:10:02 +01:00
2011-05-16 14:31:31 +01:00
2011-11-01 12:03:01 +00:00
2011-05-16 14:31:31 +01:00
2011-05-16 14:31:31 +01:00
2011-11-01 12:03:02 +00:00
2011-11-01 12:03:03 +00:00
2011-11-01 12:03:01 +00:00
2011-09-21 15:27:03 +01:00
2011-11-01 12:03:01 +00:00
2011-06-09 16:21:15 +01:00
2011-06-09 16:21:15 +01:00
2011-07-04 15:31:50 +01:00
2011-07-11 12:57:38 +01:00
2011-11-01 12:03:02 +00:00
2011-08-12 15:28:44 +01:00
2011-11-01 12:03:02 +00:00
2011-11-01 12:03:01 +00:00
2011-09-21 17:03:10 +01:00
2011-11-01 12:03:02 +00:00
2011-06-14 12:14:02 +01:00
2011-11-01 12:03:02 +00:00
2011-06-14 12:14:02 +01:00
2011-09-21 15:27:03 +01:00
2011-11-01 12:03:02 +00:00
2011-11-01 12:03:02 +00:00
2011-10-28 19:10:16 +01:00
2011-10-28 19:10:16 +01:00
2011-11-01 12:03:02 +00:00
2011-11-01 12:03:02 +00:00
2011-11-01 12:02:59 +00:00
2011-11-01 12:03:02 +00:00
2011-09-26 15:53:30 +01:00
2011-07-13 12:30:07 +01:00
2011-09-21 17:03:10 +01:00
2011-07-13 12:30:07 +01:00
2011-11-01 12:03:01 +00:00
2011-09-26 15:53:30 +01:00
2011-11-01 12:03:01 +00:00
2011-11-01 12:03:02 +00:00
2011-09-21 17:03:10 +01:00
2011-11-01 12:03:02 +00:00
2011-11-01 12:03:02 +00:00
2011-11-01 12:03:02 +00:00
2011-11-01 12:03:02 +00:00
2011-09-21 17:03:10 +01:00
2011-11-01 12:03:02 +00:00
2011-09-19 16:40:07 +01:00
2011-11-01 12:03:02 +00:00
2011-09-19 16:35:59 +01:00
2011-09-26 15:53:30 +01:00
2011-11-01 12:03:01 +00:00
2011-11-01 12:03:02 +00:00
2011-09-21 17:03:10 +01:00
2011-05-16 14:31:31 +01:00
2011-11-01 12:03:01 +00:00
2011-05-16 14:31:31 +01:00
2011-11-01 12:02:59 +00:00
2011-11-01 12:03:03 +00:00
2011-11-01 12:03:03 +00:00
2011-11-01 12:03:02 +00:00
2011-09-19 16:40:06 +01:00
2011-10-14 13:56:51 +01:00
2011-11-01 12:03:02 +00:00
2011-11-01 12:03:02 +00:00
2011-05-16 17:08:30 +01:00
2011-07-01 17:52:55 +01:00
2011-11-01 12:03:02 +00:00
2011-07-27 18:46:36 +01:00
2011-11-01 12:03:02 +00:00
2011-09-05 17:54:46 +01:00
2011-07-11 12:57:38 +01:00
2011-07-11 12:57:38 +01:00
2011-11-01 12:03:01 +00:00
2011-10-21 12:24:01 +01:00
2011-11-01 12:03:03 +00:00
2011-11-01 12:03:02 +00:00
2011-11-01 12:03:03 +00:00
2011-11-01 12:03:03 +00:00
2011-11-01 12:03:03 +00:00
2011-06-01 20:44:42 +01:00
2011-11-01 12:02:59 +00:00
2011-11-01 12:03:02 +00:00
2011-11-01 12:02:59 +00:00
2011-11-01 12:03:02 +00:00
2011-11-01 12:03:01 +00:00
2011-11-01 12:03:02 +00:00
2011-07-08 15:35:51 +01:00
2011-11-01 12:03:01 +00:00
2011-11-01 12:03:02 +00:00
2011-11-01 12:03:02 +00:00
2011-11-01 12:03:02 +00:00
2011-11-01 12:03:03 +00:00
2011-11-01 12:03:02 +00:00
2011-11-01 12:02:59 +00:00
2011-11-01 12:03:02 +00:00
2011-11-01 12:03:02 +00:00
2011-11-01 12:03:02 +00:00
2011-05-16 14:31:31 +01:00
2011-11-01 12:03:03 +00:00
2011-06-30 14:34:46 +01:00
2011-06-30 14:33:13 +01:00
2011-06-30 14:34:46 +01:00
2011-06-30 14:34:33 +01:00
2011-06-30 14:34:33 +01:00
2011-06-01 20:44:42 +01:00
2011-06-30 14:34:33 +01:00
2011-11-01 12:03:02 +00:00
2011-06-30 14:34:33 +01:00
2011-06-30 14:34:33 +01:00
2011-11-01 12:03:02 +00:00
2011-11-01 12:03:03 +00:00
2011-11-01 12:03:03 +00:00
2011-08-12 15:28:42 +01:00