Function TCOD_context_screen_pixel_to_tile_d¶
Defined in File context.h
Function Documentation¶
-
TCOD_Error TCOD_context_screen_pixel_to_tile_d(struct TCOD_Context *context, double *x, double *y)
Convert the screen coordinates to tile coordinates for this context.
xandyare the pointers to the screen coordinates, these will be converted to tile coordinates after the call to this function.The parameters given to the last call to
TCOD_context_presentwill determine where the tiles are for this call.Added in version 1.16.