How briantoalexandre/packagetracker works
Package Tracker is a C++ desktop prototype inspired by Packet Tracer, with an emerging network-device object model. The source currently returns from a placeholder test before initializing its window, so the GLFW/OpenGL/ImGui loop is present but unreachable at runtime. If that early return is removed, the documented loop creates a window and context, initializes GLAD and ImGui, polls events, draws the UI frame, and cleans up. The device hierarchy is represented by PC and Object; the tree has other device directories, but their implementations were not sampled.
Main entry points: main.cpp Window and events · PC.h PC device · glad.c GLAD loader · glad.h GLAD API
Components 11
Desktop application
- Application entry
src/main.cpp - Window and events
src/main.cpp - ImGui frame UI
src/main.cpp
Graphics runtime
- GLAD loader
src/glad.c - GLAD API
include/glad/glad.h
Device model
- PC device
include/objects/Devices/End/End_Devices/PC.h - Base object
include/objects/Object.h - Name counter
include/objects/Counter.h
Other components
- Desktop user
- GLFW
- OpenGL
Connections 10
- Desktop user → Application entry: starts
readme.md - Application entry → Window and events: runs loop
src/main.cpp - Window and events → GLFW: initializes and polls
src/main.cpp - Window and events → GLAD loader: loads functions
src/main.cpp - GLAD loader → GLAD API: implements API
- Window and events → OpenGL: sets viewport
src/main.cpp - ImGui frame UI → OpenGL: renders draw data
src/main.cpp - Application entry → ImGui frame UI: draws frames
src/main.cpp - PC device → Base object: inherits
include/objects/Devices/End/End_Devices/PC.h - PC device → Name counter: increments names
include/objects/Devices/End/End_Devices/PC.h