summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpacien2017-12-29 21:34:10 +0100
committerpacien2017-12-29 21:34:10 +0100
commite275a679a1fb9377dd1a74329420ce6e95a03da3 (patch)
treea316473a6dd2026d21acbc77ce98f9c68f722855
parent00eb3d02d350b7dd28afabfa160304dff4d5efb7 (diff)
downloadmorpher-e275a679a1fb9377dd1a74329420ce6e95a03da3.tar.gz
Small doc fixes
Signed-off-by: pacien <pacien.trangirard@pacien.net>
-rw-r--r--include/common/error.h2
-rw-r--r--include/morpher/morphing.h7
-rw-r--r--include/morpher/trianglemap.h10
-rw-r--r--include/painter/canvas.h4
-rw-r--r--include/painter/color.h18
5 files changed, 20 insertions, 21 deletions
diff --git a/include/common/error.h b/include/common/error.h
index 22c2630..69104cb 100644
--- a/include/common/error.h
+++ b/include/common/error.h
@@ -13,7 +13,7 @@
13#define OUT_OF_MEMORY_ERROR "Out of memory" 13#define OUT_OF_MEMORY_ERROR "Out of memory"
14 14
15/** 15/**
16 * Function: rage quit 16 * Function: rage_quit
17 * Logs the supplied error message to stderr before exiting the program with an error status code. 17 * Logs the supplied error message to stderr before exiting the program with an error status code.
18 * 18 *
19 * Parameters: 19 * Parameters:
diff --git a/include/morpher/morphing.h b/include/morpher/morphing.h
index 028cd87..48c33b4 100644
--- a/include/morpher/morphing.h
+++ b/include/morpher/morphing.h
@@ -26,17 +26,20 @@ typedef struct {
26} Morphing; 26} Morphing;
27 27
28/** 28/**
29 * Function: morphing_init 29 * Function: morphing_create
30 * Initialises a morphing. 30 * Initialises a morphing.
31 * 31 *
32 * Parameters: 32 * Parameters:
33 * width - coordinate matrix width in pixels 33 * width - coordinate matrix width in pixels
34 * height - coordinate matrix height in pixels 34 * height - coordinate matrix height in pixels
35 *
36 * Returns:
37 * The created morphing, dynamically allocated
35 */ 38 */
36Morphing *morphing_create(IntVector width, IntVector height); 39Morphing *morphing_create(IntVector width, IntVector height);
37 40
38/** 41/**
39 * Function: morphing_free 42 * Function: morphing_destroy
40 * Frees any resources allocated to a morphing. 43 * Frees any resources allocated to a morphing.
41 * 44 *
42 * Parameters: 45 * Parameters:
diff --git a/include/morpher/trianglemap.h b/include/morpher/trianglemap.h
index 3dc5f96..735be2f 100644
--- a/include/morpher/trianglemap.h
+++ b/include/morpher/trianglemap.h
@@ -29,12 +29,10 @@ typedef struct _TriangleMap {
29 * Creates a TriangleMap, instantiating it on the heap. 29 * Creates a TriangleMap, instantiating it on the heap.
30 * 30 *
31 * Parameters: 31 * Parameters:
32 * vertex1 - first vertex 32 * vi - the vertices, positively oriented
33 * vertex2 - second vertex
34 * vertex3 - third vertex
35 * 33 *
36 * Returns: 34 * Returns:
37 * A pointer to the newly created triangle 35 * A pointer to the newly created triangle, dynamically allocated
38 */ 36 */
39TriangleMap *trianglemap_create(CartesianMapping v1, CartesianMapping v2, CartesianMapping v3); 37TriangleMap *trianglemap_create(CartesianMapping v1, CartesianMapping v2, CartesianMapping v3);
40 38
@@ -87,9 +85,7 @@ int trianglemap_find_common_edge(TriangleMap *t, TriangleMap *neighbor);
87 * 85 *
88 * Parameters: 86 * Parameters:
89 * *t - the triangle to modify 87 * *t - the triangle to modify
90 * *n1 - first neighbour 88 * *ni - the neighbours
91 * *n2 - second neighbour
92 * *n3 - third neighbour
93 * *next - linear neighbour 89 * *next - linear neighbour
94 */ 90 */
95void trianglemap_set_neighbors(TriangleMap *t, TriangleMap *n1, TriangleMap *n2, TriangleMap *n3, TriangleMap *next); 91void trianglemap_set_neighbors(TriangleMap *t, TriangleMap *n1, TriangleMap *n2, TriangleMap *n3, TriangleMap *next);
diff --git a/include/painter/canvas.h b/include/painter/canvas.h
index ac278ff..51a7dc9 100644
--- a/include/painter/canvas.h
+++ b/include/painter/canvas.h
@@ -26,7 +26,7 @@ typedef struct {
26 * height - the height in pixels 26 * height - the height in pixels
27 * 27 *
28 * Returns: 28 * Returns:
29 * The initialised canvas 29 * The initialised canvas, dynamically allocated
30 */ 30 */
31Canvas *canvas_create(IntVector width, IntVector height); 31Canvas *canvas_create(IntVector width, IntVector height);
32 32
@@ -38,7 +38,7 @@ Canvas *canvas_create(IntVector width, IntVector height);
38 * *fpath - path to the base image file 38 * *fpath - path to the base image file
39 * 39 *
40 * Returns: 40 * Returns:
41 * The initialised canvas 41 * The initialised canvas, dynamically allocated
42 */ 42 */
43Canvas *canvas_create_from_image(const char *fpath); 43Canvas *canvas_create_from_image(const char *fpath);
44 44
diff --git a/include/painter/color.h b/include/painter/color.h
index ea41faf..4a97f50 100644
--- a/include/painter/color.h
+++ b/include/painter/color.h
@@ -32,28 +32,28 @@ typedef union {
32 32
33/** 33/**
34 * Function: color_equals 34 * Function: color_equals
35 * Compares the supplied colors. 35 * Compares the supplied colours.
36 * 36 *
37 * Parameters: 37 * Parameters:
38 * c1 - the first color 38 * c1 - the first colour
39 * c2 - the second color 39 * c2 - the second colour
40 * 40 *
41 * Returns: 41 * Returns:
42 * T(c1 is the same color as c2) 42 * T(c1 is the same colour as c2)
43 */ 43 */
44bool color_equals(Color c1, Color c2); 44bool color_equals(Color c1, Color c2);
45 45
46/** 46/**
47 * Function: color_blend 47 * Function: color_blend
48 * Blends two colors. 48 * Blends two colours.
49 * 49 *
50 * Parameters: 50 * Parameters:
51 * origin - the first color 51 * origin - the first colour
52 * target - the second color 52 * target - the second colour
53 * distance - the distance from the first color 53 * distance - the distance from the first colour
54 * 54 *
55 * Returns: 55 * Returns:
56 * The blended color 56 * The blended colour
57 */ 57 */
58Color color_blend(Color origin, Color target, TimeVector distance); 58Color color_blend(Color origin, Color target, TimeVector distance);
59 59