Commit Graph

48 Commits

Author SHA1 Message Date
abdelrahman 4610561eff Remove code for connecting noodles 2024-02-25 13:14:14 +00:00
abdelrahman 8501eb787e Support connecting noodle to another node and ensure it
stays connected when parent node moves
2024-02-25 12:33:13 +00:00
abdelrahman 050bb355d0 Reset noodle to default position if not connected to another node 2024-02-25 00:46:02 +00:00
abdelrahman a86b025f7d Fix node type typo 2024-02-25 00:02:40 +00:00
abdelrahman 2d31233a1e Add functionality to draw nodes with user-defined inputs count 2024-02-24 23:53:04 +00:00
abdelrahman 84cdb87a19 Update code to use stdlib 2024-02-24 20:45:09 +00:00
abdelrahman 10ba3d642d Support drawing a node with connection that can be modified by user 2024-02-20 00:18:53 +00:00
abdelrahman d73275f04c Add line_from_origin function 2024-01-24 23:43:14 +00:00
abdelrahman f56e6b1bb1 Remove test code 2024-01-24 23:43:06 +00:00
abdelrahman c70f252349 Add absolute, radians and degrees math utilities 2024-01-24 23:42:40 +00:00
abdelrahman 8275fce9c6 Update noodle drawing code 2024-01-24 22:44:36 +00:00
abdelrahman a58a315d48 Update test code 2024-01-24 22:44:20 +00:00
abdelrahman 04855478fd Add function to calculate line direction 2024-01-24 22:43:55 +00:00
abdelrahman bdb4a52771 Reorganise window functions 2024-01-24 22:13:38 +00:00
abdelrahman afd09d7742 Remove unused include 2024-01-21 22:37:47 +00:00
abdelrahman 924ed544aa Improve implementation of drawing the noodles 2024-01-21 22:37:09 +00:00
abdelrahman f72497e1b7 Use barycentric coordinates instead of half space for triangle fill 2024-01-21 22:36:36 +00:00
abdelrahman b329e0feb4 Add math utilities 2024-01-21 22:36:13 +00:00
abdelrahman 53d0a4698f Fix moving behaviour 2024-01-21 19:39:25 +00:00
abdelrahman 64f0328966 Rename data types and start implementing drawing quads in ui 2024-01-21 03:38:48 +00:00
abdelrahman 6df11cfdeb Add quad drawing utilities 2024-01-21 01:20:00 +00:00
abdelrahman fa82203681 Add basic function to fill triangle 2024-01-21 00:19:21 +00:00
abdelrahman 63f119c1b2 Refactor UI code into an immediate mode style (#1)
Co-authored-by: Abdelrahman <said.abdelrahman89@gmail.com>
Reviewed-on: #1
2024-01-20 22:22:17 +00:00
abdelrahman 60d236c080 Focus window on mouse enter 2024-01-15 23:44:38 +00:00
abdelrahman 571e734ebe Add op node when clicked and connect to proper function 2024-01-15 23:35:44 +00:00
abdelrahman 680f1ec380 Ensure position of last clicked mouse is stored on every click 2024-01-15 23:29:13 +00:00
abdelrahman f541e3afc3 Fix button clicking logic 2024-01-15 23:27:41 +00:00
abdelrahman 0ac799cec8 Add initial toolbox support 2024-01-15 22:38:58 +00:00
abdelrahman 9d438d7347 Add basic comp ops implementations 2024-01-15 22:38:30 +00:00
abdelrahman 6d7de03ae8 Add drawing buttons 2024-01-15 22:36:46 +00:00
abdelrahman f7449d8014 Remove aabb from the nodes module 2024-01-15 22:36:25 +00:00
abdelrahman c831fd23f7 Extract collision detection into a ui module 2024-01-15 22:35:31 +00:00
abdelrahman d114cfce99 Create toolbox window 2024-01-15 20:48:36 +00:00
abdelrahman 9806a5c708 Add window position information 2024-01-15 20:48:21 +00:00
abdelrahman 81fbff96b8 Filter events by window ID 2024-01-15 20:18:41 +00:00
abdelrahman 10ff46cfe4 Update node_t struct definition 2024-01-15 20:03:55 +00:00
abdelrahman fc0e3524fe Add window ID 2024-01-15 20:03:25 +00:00
abdelrahman dacc3be970 Update code for detecting mouse hovering nodes 2024-01-15 19:12:21 +00:00
abdelrahman c397bcd17d Isolate the node drawing code into separate files 2024-01-15 00:00:00 +00:00
abdelrahman 95d9f5e5cf Reformat 2024-01-14 23:52:48 +00:00
abdelrahman fe8ff990c6 Add initial node drawing 2024-01-14 23:51:56 +00:00
abdelrahman 63312be847 Add fill_rect function 2024-01-14 22:59:28 +00:00
abdelrahman 148dec2d3d Enable drop file events 2024-01-14 19:51:33 +00:00
abdelrahman 0f87945e89 Add rectangle drawing utilities 2024-01-14 19:51:18 +00:00
abdelrahman dc5d252c90 Update entry point 2024-01-14 19:30:42 +00:00
abdelrahman 150ada41b2 Start building main compositor application 2024-01-14 19:30:21 +00:00
abdelrahman ea3aceeaf8 Add window utilities 2024-01-14 19:30:04 +00:00
abdelrahman 8ad090b582 Reorganise the repo 2024-01-14 16:51:54 +00:00