-
Notifications
You must be signed in to change notification settings - Fork 613
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create renderer architecture documentation
- Loading branch information
Showing
1 changed file
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Renderer Architecture | ||
|
||
The renderer is split into two parts: the front end and the back end. | ||
|
||
## Front end | ||
The front end is what cgame and UI modules communicate with. It's responsibility is to build up the scene as it is in the current frame to render as well as the view point from which to render. No GL calls are invoked at any point in this part of the code. | ||
|
||
When the scene has been built up, the entities to draw are submitted into a queue to be read by the backend. Entities are sorted on a number of parameters. | ||
|
||
## Back end | ||
The back end is responsible for drawing all of the entities submitted to it using OpenGL. |