summaryrefslogtreecommitdiffstats
path: root/libdimension-python/dimension.pxd
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-06-07 15:43:19 -0400
committerTavian Barnes <tavianator@tavianator.com>2014-06-07 15:44:11 -0400
commit6c95702123269a674f0ffa0b57ec756bc611c643 (patch)
tree271a4a4e7e3912899bb31d62764f3d2fb9975729 /libdimension-python/dimension.pxd
parenta79085ab984979dbf4f78545f7592c8b47e4a794 (diff)
downloaddimension-6c95702123269a674f0ffa0b57ec756bc611c643.tar.xz
objects: Implement triangle fans.
Diffstat (limited to 'libdimension-python/dimension.pxd')
-rw-r--r--libdimension-python/dimension.pxd10
1 files changed, 10 insertions, 0 deletions
diff --git a/libdimension-python/dimension.pxd b/libdimension-python/dimension.pxd
index a7b8a53..0c62df6 100644
--- a/libdimension-python/dimension.pxd
+++ b/libdimension-python/dimension.pxd
@@ -37,6 +37,15 @@ cdef extern from "../libdimension/dimension.h":
double dmnsn_epsilon
+ ##########
+ # Malloc #
+ ##########
+
+ void *dmnsn_malloc(size_t size)
+ void *dmnsn_realloc(void *ptr, size_t size)
+ char *dmnsn_strdup(const char *s)
+ void dmnsn_free(void *ptr)
+
#########
# Pools #
#########
@@ -321,6 +330,7 @@ cdef extern from "../libdimension/dimension.h":
dmnsn_object *dmnsn_new_triangle(dmnsn_pool *pool, dmnsn_vector vertices[3])
dmnsn_object *dmnsn_new_smooth_triangle(dmnsn_pool *pool, dmnsn_vector vertices[3], dmnsn_vector normals[3])
+ dmnsn_object *dmnsn_new_triangle_fan(dmnsn_pool *pool, dmnsn_vector *vertices, size_t nvertices)
dmnsn_object *dmnsn_new_plane(dmnsn_pool *pool, dmnsn_vector normal)
dmnsn_object *dmnsn_new_sphere(dmnsn_pool *pool)
dmnsn_object *dmnsn_new_cube(dmnsn_pool *pool)