How onelonecoder/olcpixelgameengine works
Main Components
a) Core Engine (Central Component):
• Primary features: pixel drawing, user interface, and platform abstraction
b) Extension System (PGEX):
• Extensions by functionality:
• Graphics (Graphics2D, Graphics3D, Wireframe)
• Input/Interface (PopUpMenu, QuickGUI)
• Audio (Sound)
• Networking (Network)
• Visualization (TransformedView, RayCastWorld)
c) Utility Layer:
• Utilities by purpose:
• Graphics (Animate2D, Camera2D, Palette)
• Data Structures (Container, QuadTree)
• File Handling (DataFile)
• Mathematics (Geometry2D)
d) Platform Support Layer:
• Supported platforms:
• Windows
• Linux
• Web (WASM)
• Other platforms (marked as community-supported)
• Blue: Core dependencies
• Green: Extension relationships
• Orange: Platform-specific implementations
[Platform Layer]
• ↑
[Core Engine]
• ↓
[Extensions] ← [Utilities]
Additional Elements
b) Version Information:
• Current version number
• Compatibility notes
c) Integration Points:
• How user code interfaces with the engine
• Extension points
Technical Details
• Header-only nature of the engine
• Cross-platform compilation paths
• Extension mechanism
• Resource management flow