RoboSparrow / mcapt

The Unlicense
0 stars 0 forks source link

screen data: replace SDL2 with GLFW #4

Closed RoboSparrow closed 1 month ago

RoboSparrow commented 1 month ago

GFLW is much smaller and thus fits better our very limited needs.

Initialise a full screen (hidden) GLFW window, grab monitor dimensions and mouse positions and destroy window again

RoboSparrow commented 1 month ago

GLFW has two primary coordinate systems: the virtual screen and the window content area or content area. Both use the same unit: virtual screen coordinates, or just screen coordinates, which don't necessarily correspond to pixels.

spaces

Both the virtual screen and the content area coordinate systems have the X-axis pointing to the right and the Y-axis pointing down.

mousedev relative cordinates are inverted: top dir [+], bottom dir [-]