Chipmunk2D Pro API Reference  7.0.1
 All Classes Functions Variables Typedefs Enumerations Enumerator Properties Groups Pages
cpMarch.h
1 // Copyright 2013 Howling Moon Software. All rights reserved.
2 // See http://chipmunk2d.net/legal.php for more information.
3 
6 typedef cpFloat (*cpMarchSampleFunc)(cpVect point, void *data);
7 
10 typedef void (*cpMarchSegmentFunc)(cpVect v0, cpVect v1, void *data);
11 
15 CP_EXPORT void cpMarchSoft(
16  cpBB bb, unsigned long x_samples, unsigned long y_samples, cpFloat threshold,
17  cpMarchSegmentFunc segment, void *segment_data,
18  cpMarchSampleFunc sample, void *sample_data
19 );
20 
24 CP_EXPORT void cpMarchHard(
25  cpBB bb, unsigned long x_samples, unsigned long y_samples, cpFloat threshold,
26  cpMarchSegmentFunc segment, void *segment_data,
27  cpMarchSampleFunc sample, void *sample_data
28 );