Skip to content

cf_world_to_screen

Category: draw
GitHub: cute_draw.h


Converts a coordinate from world space into screen space.

CF_V2 cf_world_to_screen(CF_V2 point);

Remarks

Screen space has the origin at the top-left of the screen with the y-axis pointing down. This matches the coordinate space mouse coordinates are given.

cf_screen_bounds_to_world
cf_screen_to_world