How semajavoye/virtuallogigate works
VirtualLogiGate is an SDL-based digital logic simulator and visual circuit editor. The user enters through a menu, starts the in-game view, and interacts with circuit objects through the editor; the editor represents gates, wires, and lamps alongside the logic model, while the app renders the result. The README also describes signal propagation as in development and persistence and simplification as planned, but sampled source does not establish those workflows. Edges are limited to relationships visible in excerpts or documented in the README; some runtime wiring remains unsampled.
Main entry points: editor.c Circuit Editor · main.c SDL App Loop · ui.c Button UI · logic.c Gate Logic
Components 16
Application
- SDL App Loop
src/main.c - Menu Actions
src/actions.c - Text Rendering
src/render_utils.c
User Interaction
- Button UI
src/ui.c - Input Handler
src/input.c - View Camera
src/camera.c
Circuit Editing
- Circuit Editor
src/editor.c - Wire Placement
src/editor.c - Gate and Lamp Tools
src/editor.c - Circuit Selection
src/editor.c - Circuit Rendering
src/editor.c
Logic Runtime
- Gate Logic
src/logic.c - Circuit Persistence
src - Logic Simplification
src - Signal Propagation
src/editor.c
Other components
- User
Connections 18
- User → SDL App Loop: uses
README.md - SDL App Loop → Button UI: creates and renders
src/main.c - SDL App Loop → Circuit Editor: renders editor
src/main.c - SDL App Loop → View Camera: transforms input
src/main.c - SDL App Loop → Menu Actions: registers callbacks
src/main.c - SDL App Loop → Input Handler
- Button UI → Circuit Editor: queries placement modes
src/ui.c - Circuit Editor → View Camera: converts coordinates
src/editor.c - Circuit Editor → Wire Placement: manages placement
src/editor.c - Circuit Editor → Gate and Lamp Tools: creates and connects
src/editor.c - Circuit Editor → Circuit Selection: selects objects
src/editor.c - Circuit Editor → Circuit Rendering: renders circuit
src/editor.c - Circuit Editor → Gate Logic: links logic objects
src/editor.c - Circuit Editor → Signal Propagation: exposes propagation
src/editor.c - SDL App Loop → Text Rendering
- Circuit Editor → Circuit Persistence: planned save and load
README.md - Gate Logic → Logic Simplification: planned optimization
README.md - Circuit Editor → Signal Propagation: planned signal model
README.md