Alchemy
Loading...
Searching...
No Matches

curve.h

Go to the documentation of this file.
1#ifndef ALCHEMY_CURVE_H
2#define ALCHEMY_CURVE_H
3
4/// @file
5/// The step counts and value shift of a curve table.
6
7#include "types.h"
8
9enum {
10 /// Turns a height sample, in 8-pixel units, into 16.16 fixed-point pixels.
12 CURVE_HALF_STEPS = 8, ///< pixels to the middle of a 16-pixel cell
13 CURVE_FULL_STEPS = 16, ///< pixels across a cell
14};
15
16#endif
@ CURVE_FULL_STEPS
pixels across a cell
Definition curve.h:13
@ CURVE_VALUE_SHIFT
Turns a height sample, in 8-pixel units, into 16.16 fixed-point pixels.
Definition curve.h:11
@ CURVE_HALF_STEPS
pixels to the middle of a 16-pixel cell
Definition curve.h:12
The integer types, TRUE, UNUSED and the fixed-address macros.