summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension/ray_trace.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-12-05 19:40:30 -0500
committerTavian Barnes <tavianator@gmail.com>2011-12-05 19:41:06 -0500
commit0f6df6bc1eb9ded4a9a1a9e2c7ad50646cfb5aac (patch)
tree02ed22a80af4dbee542810b93231476b404ccfc2 /libdimension/dimension/ray_trace.h
parent3788cd05eb4a4c30bb659b2be6339edf94a9f8c0 (diff)
downloaddimension-0f6df6bc1eb9ded4a9a1a9e2c7ad50646cfb5aac.tar.xz
Rename raytrace.{c,h} to ray_trace.{c,h}.
Diffstat (limited to 'libdimension/dimension/ray_trace.h')
-rw-r--r--libdimension/dimension/ray_trace.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/libdimension/dimension/ray_trace.h b/libdimension/dimension/ray_trace.h
new file mode 100644
index 0000000..82fb759
--- /dev/null
+++ b/libdimension/dimension/ray_trace.h
@@ -0,0 +1,37 @@
+/*************************************************************************
+ * Copyright (C) 2009-2011 Tavian Barnes <tavianator@tavianator.com> *
+ * *
+ * This file is part of The Dimension Library. *
+ * *
+ * The Dimension Library is free software; you can redistribute it and/ *
+ * or modify it under the terms of the GNU Lesser General Public License *
+ * as published by the Free Software Foundation; either version 3 of the *
+ * License, or (at your option) any later version. *
+ * *
+ * The Dimension Library is distributed in the hope that it will be *
+ * useful, but WITHOUT ANY WARRANTY; without even the implied warranty *
+ * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
+ * Lesser General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU Lesser General Public *
+ * License along with this program. If not, see *
+ * <http://www.gnu.org/licenses/>. *
+ *************************************************************************/
+
+/**
+ * @file
+ * Ray-trace a scene.
+ */
+
+/**
+ * Render a scene by ray tracing.
+ * @param[in,out] scene The scene to render.
+ */
+void dmnsn_ray_trace(dmnsn_scene *scene);
+
+/**
+ * Render a scene in the background.
+ * @param[in,out] scene The scene to render.
+ * @return A \p dmnsn_future object.
+ */
+dmnsn_future *dmnsn_ray_trace_async(dmnsn_scene *scene);