summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-06-08 12:48:56 -0400
committerTavian Barnes <tavianator@tavianator.com>2014-06-08 12:48:56 -0400
commitf31c6415eb80f970e2e86275299b875bd91065a6 (patch)
tree5f85d91afff51433867a48972dd9e3239824c8e3 /libdimension/dimension
parent0210df5a5dade94960ef48ca26a98a2676f215f7 (diff)
downloaddimension-f31c6415eb80f970e2e86275299b875bd91065a6.tar.xz
objects: Implement smooth triangle fans.
Diffstat (limited to 'libdimension/dimension')
-rw-r--r--libdimension/dimension/objects.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/libdimension/dimension/objects.h b/libdimension/dimension/objects.h
index b328025..e5a39c5 100644
--- a/libdimension/dimension/objects.h
+++ b/libdimension/dimension/objects.h
@@ -49,8 +49,17 @@ dmnsn_object *dmnsn_new_smooth_triangle(dmnsn_pool *pool, dmnsn_vector vertices[
* @param[in] nvertices The number of vertices.
* @return A triangle fan.
*/
-dmnsn_object *
-dmnsn_new_triangle_fan(dmnsn_pool *pool, dmnsn_vector vertices[], size_t nvertices);
+dmnsn_object *dmnsn_new_triangle_fan(dmnsn_pool *pool, dmnsn_vector vertices[], size_t nvertices);
+
+/**
+ * A smooth triangle fan.
+ * @param[in] pool The memory pool to allocate from.
+ * @param[in] vertices The vertices of the fan, starting in the center.
+ * @param[in] vertices The normal vector for each vertex.
+ * @param[in] nvertices The number of vertices.
+ * @return A triangle fan.
+ */
+dmnsn_object *dmnsn_new_smooth_triangle_fan(dmnsn_pool *pool, dmnsn_vector vertices[], dmnsn_vector normals[], size_t nvertices);
/**
* A plane.