summaryrefslogtreecommitdiff
path: root/src/modules/ray/ray_render_object.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2017-12-23 22:56:24 -0800
committerVito Caputo <vcaputo@pengaru.com>2017-12-23 22:56:24 -0800
commitda7171d994d66198682a50f05954b629eb6fb4e4 (patch)
tree670404ff4e36118cdb1f75d6b3d8dc657277511b /src/modules/ray/ray_render_object.h
parent12b7b727f859c4b3129fdc12c4df74797de9471a (diff)
ray: constify input scene and camera parameters
also const the ray_euler_t basis
Diffstat (limited to 'src/modules/ray/ray_render_object.h')
-rw-r--r--src/modules/ray/ray_render_object.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/ray/ray_render_object.h b/src/modules/ray/ray_render_object.h
index 5b4ce25..1136eee 100644
--- a/src/modules/ray/ray_render_object.h
+++ b/src/modules/ray/ray_render_object.h
@@ -25,7 +25,7 @@ typedef union ray_render_object_t {
* If the object has any pre-calculating to do, this is where it happens.
* The pre-calculated stuff is object-resident under a _prepared struct member.
*/
-static inline ray_render_object_t ray_render_object_prepare(ray_object_t *object, ray_camera_t *camera)
+static inline ray_render_object_t ray_render_object_prepare(const ray_object_t *object, const ray_camera_t *camera)
{
ray_render_object_t prepared = { .type = object->type };
© All Rights Reserved