# redpandaprojects/unrealengine architecture

> Architecture diagram of the GitHub repository redpandaprojects/unrealengine, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/redpandaprojects/unrealengine
- Repository: https://github.com/redpandaprojects/unrealengine

## Overview

This repository is the source for the 1998 Unreal Engine, a game engine and its Windows editor/runtime. A principal runtime path is Windows launch and message handling into engine initialization and client viewports, with rendering and audio as engine subsystems. The codebase also includes editor tools, networking, effects, and shared object/serialization infrastructure. The README identifies the product but does not enumerate feature workflows; unsampled modules are represented by their source-tree paths, and links are limited to relationships supported by excerpts or the source index.

Main entry points: [`Source/Engine/Src/UnEngine.cpp`](https://github.com/redpandaprojects/unrealengine/blob/master/Source/Engine/Src/UnEngine.cpp) (Engine Subsystems), [`Source/Window/Src/Main.cpp`](https://github.com/redpandaprojects/unrealengine/blob/master/Source/Window/Src/Main.cpp) (Window System), [`Source/Render/Src/UnRender.cpp`](https://github.com/redpandaprojects/unrealengine/blob/master/Source/Render/Src/UnRender.cpp) (Renderer), [`Source/Core/Src/UnObj.cpp`](https://github.com/redpandaprojects/unrealengine/blob/master/Source/Core/Src/UnObj.cpp) (Object System)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_platform["Launch and Platform"]
  node_launch["Game Launch<br/>[Launch.cpp]"]
  node_window["Window System<br/>[Main.cpp]"]
  node_winviewport["Windows Viewport<br/>[WinViewport.cpp]"]
end

subgraph group_engine["Engine Runtime"]
  node_engine["Engine Subsystems<br/>[UnEngine.cpp]"]
  node_actors["Actors and Game<br/>[EngineClasses.h]"]
  node_world["Level and World<br/>[UnLevel.h]"]
  node_input["Input and Players<br/>[UnIn.h]"]
  node_paths["Navigation<br/>[UnPath.cpp]"]
  node_audio["Audio Subsystem<br/>[UnAudio.cpp]"]
end

subgraph group_core["Core Objects"]
  node_coreobjects["Object System<br/>[UnObj.cpp]"]
  node_linker["Package Linker<br/>[UnLinker.h]"]
  node_files["Files and Archives<br/>[UnFile.h]"]
end

subgraph group_graphics["Rendering and Effects"]
  node_renderer["Renderer<br/>[UnRender.cpp]"]
  node_lighting["Lighting<br/>[UnLight.cpp]"]
  node_software["Software Driver<br/>[DrawPoly.cpp]"]
  node_effects["Fractal Effects<br/>[UnFractal.cpp]"]
end

subgraph group_tools["Editor and Networking"]
  node_editor["Editor Tools<br/>[UnEditor.cpp]"]
  node_editorcommands["Editor Commands<br/>[UnScrCom.cpp]"]
  node_network["IP Networking<br/>[IpDrv.cpp]"]
end

node_user(("Player or Operator"))

node_user -->|"starts game"| node_launch
node_launch -->|"uses window API"| node_window
node_window -->|"initializes runtime"| node_engine
node_window -.->|"handles windows"| node_winviewport
node_window -->|"uses engine API"| node_engine
node_engine -->|"routes commands"| node_coreobjects
node_engine -->|"dispatches commands"| node_renderer
node_engine -->|"dispatches commands"| node_audio
node_engine -->|"exposes game classes"| node_actors
node_engine -->|"includes world API"| node_world
node_engine -->|"includes input API"| node_input
node_engine -->|"includes navigation"| node_paths
node_engine -.->|"owns client"| node_winviewport
node_renderer -.->|"uses lighting"| node_lighting
node_renderer -.->|"supports driver"| node_software
node_effects -->|"uses engine API"| node_engine
node_editor -.->|"uses engine runtime"| node_engine
node_editorcommands -.->|"extends editor"| node_editor
node_network -->|"uses engine API"| node_engine
node_coreobjects -->|"uses linker"| node_linker
node_coreobjects -.->|"uses file API"| node_files
node_winviewport -->|"uses render API"| node_renderer

click node_launch "https://github.com/redpandaprojects/unrealengine/blob/master/Source/Unreal/Src/Launch.cpp"
click node_window "https://github.com/redpandaprojects/unrealengine/blob/master/Source/Window/Src/Main.cpp"
click node_winviewport "https://github.com/redpandaprojects/unrealengine/blob/master/Source/WinDrv/WinViewport.cpp"
click node_engine "https://github.com/redpandaprojects/unrealengine/blob/master/Source/Engine/Src/UnEngine.cpp"
click node_actors "https://github.com/redpandaprojects/unrealengine/blob/master/Source/Engine/Inc/EngineClasses.h"
click node_world "https://github.com/redpandaprojects/unrealengine/blob/master/Source/Engine/Inc/UnLevel.h"
click node_input "https://github.com/redpandaprojects/unrealengine/blob/master/Source/Engine/Inc/UnIn.h"
click node_paths "https://github.com/redpandaprojects/unrealengine/blob/master/Source/Engine/Src/UnPath.cpp"
click node_coreobjects "https://github.com/redpandaprojects/unrealengine/blob/master/Source/Core/Src/UnObj.cpp"
click node_linker "https://github.com/redpandaprojects/unrealengine/blob/master/Source/Core/Src/UnLinker.h"
click node_files "https://github.com/redpandaprojects/unrealengine/blob/master/Source/Core/Inc/UnFile.h"
click node_renderer "https://github.com/redpandaprojects/unrealengine/blob/master/Source/Render/Src/UnRender.cpp"
click node_lighting "https://github.com/redpandaprojects/unrealengine/blob/master/Source/Render/Src/UnLight.cpp"
click node_software "https://github.com/redpandaprojects/unrealengine/blob/master/Source/SoftDrv/Src/DrawPoly.cpp"
click node_effects "https://github.com/redpandaprojects/unrealengine/blob/master/Source/Fire/Src/UnFractal.cpp"
click node_audio "https://github.com/redpandaprojects/unrealengine/blob/master/Source/Engine/Src/UnAudio.cpp"
click node_editor "https://github.com/redpandaprojects/unrealengine/blob/master/Source/Editor/Src/UnEditor.cpp"
click node_editorcommands "https://github.com/redpandaprojects/unrealengine/blob/master/Source/Editor/Src/UnScrCom.cpp"
click node_network "https://github.com/redpandaprojects/unrealengine/blob/master/Source/IpDrv/Src/IpDrv.cpp"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_launch,node_window,node_winviewport toneBlue
class node_engine,node_actors,node_world,node_input,node_paths,node_audio toneAmber
class node_coreobjects,node_linker,node_files toneMint
class node_renderer,node_lighting,node_software,node_effects toneRose
class node_editor,node_editorcommands,node_network,node_user toneIndigo
```

## Components

### Launch and Platform

- [Game Launch](https://github.com/redpandaprojects/unrealengine/blob/master/Source/Unreal/Src/Launch.cpp): `Source/Unreal/Src/Launch.cpp`
- [Window System](https://github.com/redpandaprojects/unrealengine/blob/master/Source/Window/Src/Main.cpp): `Source/Window/Src/Main.cpp`
- [Windows Viewport](https://github.com/redpandaprojects/unrealengine/blob/master/Source/WinDrv/WinViewport.cpp): `Source/WinDrv/WinViewport.cpp`

### Engine Runtime

- [Engine Subsystems](https://github.com/redpandaprojects/unrealengine/blob/master/Source/Engine/Src/UnEngine.cpp): `Source/Engine/Src/UnEngine.cpp`
- [Actors and Game](https://github.com/redpandaprojects/unrealengine/blob/master/Source/Engine/Inc/EngineClasses.h): `Source/Engine/Inc/EngineClasses.h`
- [Level and World](https://github.com/redpandaprojects/unrealengine/blob/master/Source/Engine/Inc/UnLevel.h): `Source/Engine/Inc/UnLevel.h`
- [Input and Players](https://github.com/redpandaprojects/unrealengine/blob/master/Source/Engine/Inc/UnIn.h): `Source/Engine/Inc/UnIn.h`
- [Navigation](https://github.com/redpandaprojects/unrealengine/blob/master/Source/Engine/Src/UnPath.cpp): `Source/Engine/Src/UnPath.cpp`
- [Audio Subsystem](https://github.com/redpandaprojects/unrealengine/blob/master/Source/Engine/Src/UnAudio.cpp): `Source/Engine/Src/UnAudio.cpp`

### Core Objects

- [Object System](https://github.com/redpandaprojects/unrealengine/blob/master/Source/Core/Src/UnObj.cpp): `Source/Core/Src/UnObj.cpp`
- [Package Linker](https://github.com/redpandaprojects/unrealengine/blob/master/Source/Core/Src/UnLinker.h): `Source/Core/Src/UnLinker.h`
- [Files and Archives](https://github.com/redpandaprojects/unrealengine/blob/master/Source/Core/Inc/UnFile.h): `Source/Core/Inc/UnFile.h`

### Rendering and Effects

- [Renderer](https://github.com/redpandaprojects/unrealengine/blob/master/Source/Render/Src/UnRender.cpp): `Source/Render/Src/UnRender.cpp`
- [Lighting](https://github.com/redpandaprojects/unrealengine/blob/master/Source/Render/Src/UnLight.cpp): `Source/Render/Src/UnLight.cpp`
- [Software Driver](https://github.com/redpandaprojects/unrealengine/blob/master/Source/SoftDrv/Src/DrawPoly.cpp): `Source/SoftDrv/Src/DrawPoly.cpp`
- [Fractal Effects](https://github.com/redpandaprojects/unrealengine/blob/master/Source/Fire/Src/UnFractal.cpp): `Source/Fire/Src/UnFractal.cpp`

### Editor and Networking

- [Editor Tools](https://github.com/redpandaprojects/unrealengine/blob/master/Source/Editor/Src/UnEditor.cpp): `Source/Editor/Src/UnEditor.cpp`
- [Editor Commands](https://github.com/redpandaprojects/unrealengine/blob/master/Source/Editor/Src/UnScrCom.cpp): `Source/Editor/Src/UnScrCom.cpp`
- [IP Networking](https://github.com/redpandaprojects/unrealengine/blob/master/Source/IpDrv/Src/IpDrv.cpp): `Source/IpDrv/Src/IpDrv.cpp`

### Other components

- **Player or Operator**

## Connections

- Player or Operator → Game Launch: starts game
- Game Launch → Window System: uses window API (evidence: `Source/Unreal/Src/Launch.cpp`)
- Window System → Engine Subsystems: initializes runtime (evidence: `Source/Window/Src/Main.cpp`)
- Window System → Windows Viewport: handles windows
- Window System → Engine Subsystems: uses engine API (evidence: `Source/Window/Src/Main.cpp`)
- Engine Subsystems → Object System: routes commands (evidence: `Source/Engine/Src/UnEngine.cpp`)
- Engine Subsystems → Renderer: dispatches commands (evidence: `Source/Engine/Src/UnEngine.cpp`)
- Engine Subsystems → Audio Subsystem: dispatches commands (evidence: `Source/Engine/Src/UnEngine.cpp`)
- Engine Subsystems → Actors and Game: exposes game classes (evidence: `Source/Engine/Src/UnEngine.cpp`)
- Engine Subsystems → Level and World: includes world API
- Engine Subsystems → Input and Players: includes input API
- Engine Subsystems → Navigation: includes navigation
- Engine Subsystems → Windows Viewport: owns client
- Renderer → Lighting: uses lighting
- Renderer → Software Driver: supports driver
- Fractal Effects → Engine Subsystems: uses engine API
- Editor Tools → Engine Subsystems: uses engine runtime
- Editor Commands → Editor Tools: extends editor
- IP Networking → Engine Subsystems: uses engine API (evidence: `Source/IpDrv/Src/IpDrv.cpp`)
- Object System → Package Linker: uses linker (evidence: `Source/Core/Src/UnObj.cpp`)
- Object System → Files and Archives: uses file API
- Windows Viewport → Renderer: uses render API (evidence: `Source/WinDrv/WinViewport.cpp`)
