summaryrefslogtreecommitdiff
path: root/src/libs/din/din.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-12-31 14:09:29 -0800
committerVito Caputo <vcaputo@pengaru.com>2023-12-31 14:33:32 -0800
commiteae8514b9b31b0d09fc82450a74c7e53067ff701 (patch)
tree2349c8ba99af60e838f9f061fd9052d700824d87 /src/libs/din/din.h
parent724af6edee317eb281ffb847f5ea4282e5db6431 (diff)
libs/din: constify coordinate to din()
This doesn't seem to make any impact on performance, but it's awkward to be modifying the supplied coordinate as if it's a result... the coordinate input should be left alone, and should be able to get reused across din calls so only the varying members need to get updated across calls.
Diffstat (limited to 'src/libs/din/din.h')
-rw-r--r--src/libs/din/din.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/din/din.h b/src/libs/din/din.h
index ff25fb4..ec69e0f 100644
--- a/src/libs/din/din.h
+++ b/src/libs/din/din.h
@@ -7,6 +7,6 @@ typedef struct v3f_t v3f_t;
din_t * din_new(int width, int height, int depth, unsigned seed);
void din_free(din_t *din);
void din_randomize(din_t *din);
-float din(const din_t *din, v3f_t *coordinate);
+float din(const din_t *din, const v3f_t *coordinate);
#endif
© All Rights Reserved