HighMap library (C++)
Loading...
Searching...
No Matches
warp.hpp File Reference

Header file for array warping functions. More...

Go to the source code of this file.

Namespaces

namespace  hmap
namespace  hmap::gpu

Functions

void hmap::warp (Array &array, const Array *p_dx, const Array *p_dy)
 Apply a warping effect to the array.
void hmap::warp_directional (Array &array, float angle, float amount=0.02f, int ir=4, bool reverse=false)
 Apply a warping effect following the downward local gradient direction (deflate/inflate effect).
void hmap::warp_directional (Array &array, float angle, const Array *p_mask, float amount=0.02f, int ir=4, bool reverse=false)
 Apply a warping effect following the downward local gradient direction (deflate/inflate effect) with a mask.
void hmap::warp_downslope (Array &array, float amount=0.02f, int ir=4, bool reverse=false)
 Apply a warping effect following the downward local gradient direction (deflate/inflate effect).
void hmap::warp_downslope (Array &array, const Array *p_mask, float amount=0.02f, int ir=4, bool reverse=false)
 Apply a warping effect following the downward local gradient direction (deflate/inflate effect) with a mask.
void hmap::gpu::warp (Array &array, const Array *p_dx, const Array *p_dy)
 See hmap::warp.

Detailed Description

Header file for array warping functions.

Author
Otto Link (otto..nosp@m.link.nosp@m..bv@g.nosp@m.mail.nosp@m..com)