Skip to content

The Screen Draw Process

Valkryst edited this page Nov 1, 2017 · 7 revisions

General Process

  1. All non-Layer components are drawn onto the Screen.
  2. The Screen is drawn onto the Panel.
  3. Layer components are drawn on top of the Screen on the Panel.
  4. Sub-Screens are drawn on top of the Screen/Layers on the Panel.

Character Cell Process

  1. 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 the sprite for the character.
    1. The base image is loaded.
    2. The character's colors are applied to the image.
    3. The character's shaders are applied to the image.
    4. The image is converted from a BufferedImage into a VolatileImage.
    5. The image is cached.
Clone this wiki locally