summaryrefslogtreecommitdiff
path: root/src/modules/ray/ray_camera.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_camera.h
parent12b7b727f859c4b3129fdc12c4df74797de9471a (diff)
ray: constify input scene and camera parameters
also const the ray_euler_t basis
Diffstat (limited to 'src/modules/ray/ray_camera.h')
-rw-r--r--src/modules/ray/ray_camera.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/ray/ray_camera.h b/src/modules/ray/ray_camera.h
index 889beb9..e393beb 100644
--- a/src/modules/ray/ray_camera.h
+++ b/src/modules/ray/ray_camera.h
@@ -20,10 +20,10 @@ typedef struct ray_camera_t {
typedef struct ray_camera_frame_t {
- ray_camera_t *camera; /* the camera supplied to frame_begin() */
+ const ray_camera_t *camera; /* the camera supplied to frame_begin() */
- ray_3f_t nw, ne, sw, se; /* directions pointing through the corners of the frame fragment */
- float x_delta, y_delta; /* interpolation step delta along the x and y axis */
+ ray_3f_t nw, ne, sw, se; /* directions pointing through the corners of the frame fragment */
+ float x_delta, y_delta; /* interpolation step delta along the x and y axis */
} ray_camera_frame_t;
@@ -38,7 +38,7 @@ typedef struct ray_camera_fragment_t {
} ray_camera_fragment_t;
-void ray_camera_frame_prepare(ray_camera_t *camera, ray_camera_frame_t *res_frame);
+void ray_camera_frame_prepare(const ray_camera_t *camera, ray_camera_frame_t *res_frame);
void ray_camera_fragment_begin(ray_camera_frame_t *frame, fb_fragment_t *fb_fragment, ray_ray_t *res_ray, ray_camera_fragment_t *res_fragment);
© All Rights Reserved