How mandliors/gaegebra works
GaeGebra is a C/SDL2 coordinate-geometry desktop app with a responsive UI. Users choose a construction tool, interact with the coordinate plane to create or manipulate geometry, and see it rendered in the window. The README documents points, lines, circles, parallel/perpendicular lines, angle bisectors, and tangents, plus zooming and coordinate transforms. The graph also captures the app/window and UI/rendering layers. Relationships come from the README and SOURCE INDEX references; unsampled modules are represented only where documented or referenced.
Main entry points: main.c Application workflow · coordinate_system.c Coordinate plane · shape.c Geometry constructions · renderer.c Drawing renderer
Components 19
App interaction
- Application workflow
src/main.c - Input state
src/input/input.c
Geometry
- Coordinate plane
src/geometry/coordinate_system/coordinate_system.c - Geometry constructions
src/geometry/shape/shape.c - Intersection calculations
src/geometry/intersection/intersection.c - 2D vector math
src/geometry/vector2/vector2.c - General math
src/utils/math/math.c
User interface
- UI management
src/ui/ui.c - UI elements
src/ui/ui_element/ui_element.c - Responsive constraints
src/ui/ui_constraint/ui_constraint.c
Window and rendering
- App lifecycle
src/app/app.c - Window and events
src/window/window.c - Drawing renderer
src/renderer/renderer.c - Texture resources
src/texture/texture.c - Font resources
src/font/font.c - Color utilities
src/color/color.c - Dynamic collections
src/utils/vector/vector.c
Other components
- User
- SDL2 runtime
Connections 29
- User → Application workflow: uses tools
README.md - Application workflow → App lifecycle: initializes
src/main.c - Application workflow → Window and events: creates window
src/main.c - Application workflow → UI management: builds interface
src/main.c - Application workflow → Coordinate plane: handles construction
src/main.c - Application workflow → Geometry constructions: creates shapes
src/main.c - App lifecycle → Window and events: manages windows
src/app/app.c - App lifecycle → Input state: updates input
src/app/app.c - App lifecycle → UI management: updates UI
src/app/app.c - Window and events → Input state: dispatches events
src/window/window.c - Window and events → UI management: updates and renders
src/window/window.c - Coordinate plane → Geometry constructions: stores shapes
- Coordinate plane → Drawing renderer: draws plane
src/geometry/coordinate_system/coordinate_system.c - Coordinate plane → Intersection calculations: uses calculations
src/geometry/coordinate_system/coordinate_system.c - Coordinate plane → General math: uses math
src/geometry/coordinate_system/coordinate_system.c - Geometry constructions → Coordinate plane: uses coordinate plane
src/geometry/shape/shape.c - Geometry constructions → Drawing renderer: draws geometry
src/geometry/shape/shape.c - Geometry constructions → Input state: reads interaction
src/geometry/shape/shape.c - Intersection calculations → Geometry constructions: operates on shapes
- UI management → UI elements: manages elements
- UI elements → Responsive constraints: uses constraints
- UI elements → Drawing renderer: draws controls
src/ui/ui_element/ui_element.c - UI elements → Input state: handles interaction
src/ui/ui_element/ui_element.c - Drawing renderer → Texture resources: draws textures
src/renderer/renderer.c - Drawing renderer → Font resources: draws text
src/renderer/renderer.c - Application workflow → Font resources: loads font
src/main.c - App lifecycle → SDL2 runtime: initializes runtime
- Drawing renderer → SDL2 runtime: renders via
- Input state → SDL2 runtime: reads events