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

Namespaces

namespace  hmap
 

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.