summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension/scene.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-06-12 11:05:10 -0400
committerTavian Barnes <tavianator@tavianator.com>2014-06-12 11:05:10 -0400
commitbb976e3a5cc01abecf6729eb511f75fb21c6d2c4 (patch)
tree606e5094f454fa53bcd52afac5cb815742d13e56 /libdimension/dimension/scene.h
parent453bb6c1b79d6d4fe4b1277336dc0f4097a5ee6b (diff)
downloaddimension-bb976e3a5cc01abecf6729eb511f75fb21c6d2c4.tar.xz
Add a C99 conformance test for the headers.
Diffstat (limited to 'libdimension/dimension/scene.h')
-rw-r--r--libdimension/dimension/scene.h58
1 files changed, 29 insertions, 29 deletions
diff --git a/libdimension/dimension/scene.h b/libdimension/dimension/scene.h
index dd0c1ba..b9f8c36 100644
--- a/libdimension/dimension/scene.h
+++ b/libdimension/dimension/scene.h
@@ -23,62 +23,62 @@
* Entire scenes.
*/
-/** Render quality flags. */
+/// Render quality flags.
enum {
- DMNSN_RENDER_NONE = 0, /**< Render nothing. */
- DMNSN_RENDER_PIGMENT = 1 << 0, /**< Render pigments. */
- DMNSN_RENDER_LIGHTS = 1 << 1, /**< Render lights and shadows. */
- DMNSN_RENDER_FINISH = 1 << 2, /**< Render object finishes. */
- DMNSN_RENDER_TRANSPARENCY = 1 << 3, /**< Render transparency/refraction. */
- DMNSN_RENDER_REFLECTION = 1 << 4, /**< Render specular reflection. */
- DMNSN_RENDER_FULL = ~DMNSN_RENDER_NONE /**< Render everything. */
+ DMNSN_RENDER_NONE = 0, ///< Render nothing.
+ DMNSN_RENDER_PIGMENT = 1 << 0, ///< Render pigments.
+ DMNSN_RENDER_LIGHTS = 1 << 1, ///< Render lights and shadows.
+ DMNSN_RENDER_FINISH = 1 << 2, ///< Render object finishes.
+ DMNSN_RENDER_TRANSPARENCY = 1 << 3, ///< Render transparency/refraction.
+ DMNSN_RENDER_REFLECTION = 1 << 4, ///< Render specular reflection.
+ DMNSN_RENDER_FULL = ~DMNSN_RENDER_NONE ///< Render everything.
};
-/** Render quality. */
+/// Render quality.
typedef unsigned int dmnsn_quality;
-/** An entire scene. */
+/// An entire scene.
typedef struct dmnsn_scene {
- /* World attributes */
- dmnsn_pigment *background; /**< Background pigment. */
- dmnsn_texture *default_texture; /**< Default object texture. */
- dmnsn_interior *default_interior; /**< Default object interior. */
+ // World attributes
+ dmnsn_pigment *background; ///< Background pigment.
+ dmnsn_texture *default_texture; ///< Default object texture.
+ dmnsn_interior *default_interior; ///< Default object interior.
- /** Canvas. */
+ /// Canvas.
dmnsn_canvas *canvas;
- /* Support for rendering image subregions. */
- size_t region_x; /**< The x position of the canvas in the broader image. */
- size_t region_y; /**< The y position of the canvas in the broader image. */
- size_t outer_width; /**< Width of the broader image. */
- size_t outer_height; /**< Height of the broader image. */
+ // Support for rendering image subregions.
+ size_t region_x; ///< The x position of the canvas in the broader image.
+ size_t region_y; ///< The y position of the canvas in the broader image.
+ size_t outer_width; ///< Width of the broader image.
+ size_t outer_height; ///< Height of the broader image.
- /** Objects. */
+ /// Objects.
dmnsn_array *objects;
- /** Lights. */
+ /// Lights.
dmnsn_array *lights;
- /** Camera. */
+ /// Camera.
dmnsn_camera *camera;
- /** Render quality. */
+ /// Render quality.
dmnsn_quality quality;
- /** Recursion limit. */
+ /// Recursion limit.
unsigned int reclimit;
- /** Adaptive depth control bailout. */
+ /// Adaptive depth control bailout.
double adc_bailout;
- /** Number of parallel threads. */
+ /// Number of parallel threads.
unsigned int nthreads;
- /** Timers. */
+ /// Timers.
dmnsn_timer bounding_timer;
dmnsn_timer render_timer;
- bool initialized; /**< @internal Whether the scene is initialized. */
+ bool initialized; ///< @internal Whether the scene is initialized.
} dmnsn_scene;
/**