Implement clicking on an object to select
authorLukas Jiriste <ljiriste@student.42prague.com>
Tue, 7 Jan 2025 14:36:22 +0000 (15:36 +0100)
committerLukas Jiriste <ljiriste@student.42prague.com>
Tue, 7 Jan 2025 14:36:22 +0000 (15:36 +0100)
commita9b3993461166af988d9de46be09597edbb1923a
treedbda36bdaeed3959fcec4e4a20ed07144316b63a
parenta3c5b5993375197a4618ea90cd7ba74053cff15d
Implement clicking on an object to select

The selected object can then be manipulated the same way as the
(current) camera. It also uses the axes of the current camera (relative
coordinates), which may or may not be desirable.
The object is selected by left mouse button and deselected by right
mouse button or escape.
inc/miniRT.h
src/main.c
src/parsing.c
src/scene.c