-
-
Notifications
You must be signed in to change notification settings - Fork 8
The Screen Draw Process
Valkryst edited this page Nov 1, 2017
·
7 revisions
- All non-Layer components are drawn onto the Screen.
- The Screen is drawn onto the Panel.
- Layer components are drawn on top of the Screen on the Panel.
- Sub-Screens are drawn on top of the Screen/Layers on the Panel.
- If a character has been significantly updated/altered (colors changed, shaders added/removed, character changed, etc...) or if the character has never had a sprite generated, then the ImageCache will generate a new sprite for the character.
- The base image is loaded.
- The character's colors are applied to the image.
- The character's shaders are applied to the image.
- The image is converted from a BufferedImage into a VolatileImage.
- The image is cached.
- The character's image is retrieved from the ImageCache and drawn.