35#ifndef TCOD_BRESENHAM_H_
36#define TCOD_BRESENHAM_H_
58TCODLIB_API TCOD_DEPRECATED(
"This function is not reentrant. Use TCOD_line_init_mt instead.") void TCOD_line_init(
59 int xFrom,
int yFrom,
int xTo,
int yTo);
62TCODLIB_API TCOD_DEPRECATED(
"This function is not reentrant.")
bool TCOD_line_step(
63 int* __restrict xCur,
int* __restrict yCur);
66TCODLIB_API
bool TCOD_line(
int xFrom,
int yFrom,
int xTo,
int yTo,
TCOD_line_listener_t listener);
82TCODLIB_API
void TCOD_line_init_mt(
int xFrom,
int yFrom,
int xTo,
int yTo,
TCOD_bresenham_data_t* data);
83TCODLIB_API
bool TCOD_line_step_mt(
int* __restrict xCur,
int* __restrict yCur,
TCOD_bresenham_data_t* __restrict data);
85TCOD_DEPRECATED(
"Use TCOD_line instead.")
86TCODLIB_API
bool TCOD_line_mt(
bool TCOD_line_step(int *xCur, int *yCur)
advance one step.
bool(* TCOD_line_listener_t)(int x, int y)
A callback to be passed to TCOD_line.
Definition bresenham.h:56
Miscellaneous tools needed across platforms.
A struct used for computing a bresenham line.
Definition bresenham.h:70