Alchemy
Loading...
Searching...
No Matches

curve_data.h File Reference

Go to the source code of this file.

Variables

const u8 gCurve_LerpWeightTable [256]
 Height-curve tables, indexed by (row << 4) + column within a 16x16 cell.
const u8 gCurve_SampleIndexTable [256]
 The sample Curve_LookupSampleByTable reads at each position: 0, 1 or 2, split along two diagonals.

Variable Documentation

◆ gCurve_LerpWeightTable

const u8 gCurve_LerpWeightTable[256]
extern

Height-curve tables, indexed by (row << 4) + column within a 16x16 cell.

The weight for Curve_LerpTwoSamplesByTable: 1 inside a rounded square, 0 at the corners.

Definition at line 8 of file curve_data.c.

Referenced by Curve_LerpTwoSamplesByTable().

◆ gCurve_SampleIndexTable

const u8 gCurve_SampleIndexTable[256]
extern

The sample Curve_LookupSampleByTable reads at each position: 0, 1 or 2, split along two diagonals.

Definition at line 29 of file curve_data.c.

Referenced by Curve_LookupSampleByTable(), and Curve_LookupSampleByTableReversed().