release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Wiki > Main > SkinRendering (compare)

Difference: SkinRendering (r2 vs. r1)

How skins are rendered

Basic Facts

  • A skin is a collection of viewports. Each viewport has a set of lines, each line a set of sublines (With different timeout values), each subline has a set of tokens which are finnaly rendered.
  • The first viewport (the "default" one) is sized to the full screen (or the UI viewport set by the Base Skin if the theme isnt disabled)
  • If no backdrop is specified (or forced off) a default backdrop is used

Current/svn/"legacy" renderer

The current renderer works like follows:

  1. On a full update, the default viewport is cleared, cleared unless we are in the sbs, all lines are reset to the first subline, timeouts cleared.
  2. Mark all conditionally hidden viewports to be hidden
  3. For each viewport:
    1. Set all images to not be displayed
    2. If it was hidden and is now visible, clear the viewport
    3. For each line in the viewport (That has the correct update flag, or had its subline changed, OR ALWAYS IF THE VIEWPORT IS ALWAYS HIDDEN)
      1. Find the current subline
      2. Handle (but DO NOT draw) each individual tag (Some tags to do drawing now - Ideally all tags should be drawn now though)
      3. If a conditional is hit:
        1. Get the current value for the conditional.
          1. If the value is hiegher than the amount of options, use the last one
        2. Go over all tags in the conditional, Handle tags which need handling in a false case (i.e clear image areas)
        3. Handle the selected conditional
      4. Draw the peak meters (LCD_BITMAP) or the progressbar (LCD_CHARCELL)
      5. If there is more than one viwport and we are NOT in the default viewport, viewport in the sbs, OR only one viewport, put the text from the HANDLE step onto the lcd
      6. draw the progressbars if this viewport has any
      7. draw each enabled (sub)image in this viewport

FS#11133 changes this the progressbar and image drawing to be drawn in the "Handle tag" step instead of at the end.

Apparently I was confused... the default viewport is handled like a normal viewport EXCEPT in the SBS... I'm not such a hige fan of this, the problem being that special handling always sucks!. This needs to happen because otherwise the default viewport will clear the UI viewport (i.e the list) when we are drawing the sbs

-- JonathanGordon - 2010-06-11

r2 - 19 Jun 2010 - 13:58:36 - JonathanGordon

Revision r2 - 19 Jun 2010 - 13:58 - JonathanGordon
Revision r1 - 11 Jun 2010 - 02:17 - JonathanGordon
Copyright by the contributing authors.