RtB/ORDER

28 lines
866 B
Plaintext

Program Order
````````````````
This file is improperly named.
Regardless, this file is intended to outline some organization of the program and how Events are passed and handled between sections of the program.
Core
accumulator loop {
* handle Events
* handle System events (resize, etc.)
* handle User Input
- first, send to Gui() subsystem to:
- check for mouse/touch events that collide with an element
- second, send to top-most State for processing
* handle Net
* receive data
- handle low-level things such as ping, disconnect, etc.
- high-level things are added to cache for further processing by top-most State
* send data
- handle low-level responses if needed
- send out high-level commands
* process top State
}
* render
* renderScene to FBO
* GUI renderScene to same FBO