summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension/finish.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-06-12 13:45:06 -0400
committerTavian Barnes <tavianator@tavianator.com>2014-06-12 13:45:06 -0400
commit0fec83ebc89bd6b86f772d942b7c39b13f773d3a (patch)
treef2d10a7fe784773b4722843ce3f2bbe1c8e0db62 /libdimension/dimension/finish.h
parentbb976e3a5cc01abecf6729eb511f75fb21c6d2c4 (diff)
downloaddimension-0fec83ebc89bd6b86f772d942b7c39b13f773d3a.tar.xz
Add a C89 compliance test for the headers.
Technically we still require a couple things from C99 like "bool", but it works with -std=c89 under gcc.
Diffstat (limited to 'libdimension/dimension/finish.h')
-rw-r--r--libdimension/dimension/finish.h50
1 files changed, 25 insertions, 25 deletions
diff --git a/libdimension/dimension/finish.h b/libdimension/dimension/finish.h
index 5471897..d975877 100644
--- a/libdimension/dimension/finish.h
+++ b/libdimension/dimension/finish.h
@@ -23,17 +23,17 @@
* Object finishes.
*/
-// Ambient component
+/* Ambient component */
-/// Ambient finish component.
+/** Ambient finish component. */
typedef struct dmnsn_ambient {
- dmnsn_color ambient; ///< Ambient light.
+ dmnsn_color ambient; /**< Ambient light. */
} dmnsn_ambient;
-/// Allocate an ambient component.
+/** Allocate an ambient component. */
dmnsn_ambient *dmnsn_new_ambient(dmnsn_pool *pool, dmnsn_color ambient);
-// Diffuse component
+/* Diffuse component */
typedef struct dmnsn_diffuse dmnsn_diffuse;
@@ -50,17 +50,17 @@ typedef dmnsn_color dmnsn_diffuse_fn(const dmnsn_diffuse *diffuse,
dmnsn_color light, dmnsn_color color,
dmnsn_vector ray, dmnsn_vector normal);
-/// Diffuse finish component.
+/** Diffuse finish component. */
struct dmnsn_diffuse {
- dmnsn_diffuse_fn *diffuse_fn; ///< Diffuse callback.
+ dmnsn_diffuse_fn *diffuse_fn; /**< Diffuse callback. */
};
-/// Allocate a dummy diffuse component.
+/** Allocate a dummy diffuse component. */
dmnsn_diffuse *dmnsn_new_diffuse(dmnsn_pool *pool);
-/// Initialize a dmnsn_diffuse field.
+/** Initialize a dmnsn_diffuse field. */
void dmnsn_init_diffuse(dmnsn_diffuse *diffuse);
-// Specular component
+/* Specular component */
typedef struct dmnsn_specular dmnsn_specular;
@@ -79,17 +79,17 @@ typedef dmnsn_color dmnsn_specular_fn(const dmnsn_specular *specular,
dmnsn_vector ray, dmnsn_vector normal,
dmnsn_vector viewer);
-/// Specular finish component.
+/** Specular finish component. */
struct dmnsn_specular {
- dmnsn_specular_fn *specular_fn; ///< Specular callback.
+ dmnsn_specular_fn *specular_fn; /**< Specular callback. */
};
-/// Allocate a dummy specular component.
+/** Allocate a dummy specular component. */
dmnsn_specular *dmnsn_new_specular(dmnsn_pool *pool);
-/// Initialize a dmnsn_specular field.
+/** Initialize a dmnsn_specular field. */
void dmnsn_init_specular(dmnsn_specular *specular);
-// Reflection component
+/* Reflection component */
typedef struct dmnsn_reflection dmnsn_reflection;
@@ -106,24 +106,24 @@ typedef dmnsn_color dmnsn_reflection_fn(const dmnsn_reflection *reflection,
dmnsn_color reflect, dmnsn_color color,
dmnsn_vector ray, dmnsn_vector normal);
-/// The reflection component.
+/** The reflection component. */
struct dmnsn_reflection {
- dmnsn_reflection_fn *reflection_fn; ///< Reflection callback.
+ dmnsn_reflection_fn *reflection_fn; /**< Reflection callback. */
};
-/// Allocate a dummy reflection component.
+/** Allocate a dummy reflection component. */
dmnsn_reflection *dmnsn_new_reflection(dmnsn_pool *pool);
-/// Initialize a dmnsn_reflection field.
+/** Initialize a dmnsn_reflection field. */
void dmnsn_init_reflection(dmnsn_reflection *reflection);
-// Entire finishes
+/* Entire finishes */
-/// A finish.
+/** A finish. */
typedef struct dmnsn_finish {
- dmnsn_ambient *ambient; ///< Ambient component.
- dmnsn_diffuse *diffuse; ///< Diffuse component.
- dmnsn_specular *specular; ///< Specular component.
- dmnsn_reflection *reflection; ///< Reflection component.
+ dmnsn_ambient *ambient; /**< Ambient component. */
+ dmnsn_diffuse *diffuse; /**< Diffuse component. */
+ dmnsn_specular *specular; /**< Specular component. */
+ dmnsn_reflection *reflection; /**< Reflection component. */
} dmnsn_finish;
/**