]> Pileus Git - aweather/commit
Update objects for new Grits expose settings
authorAndy Spencer <andy753421@gmail.com>
Mon, 6 Feb 2012 05:50:00 +0000 (05:50 +0000)
committerAndy Spencer <andy753421@gmail.com>
Mon, 6 Feb 2012 05:50:00 +0000 (05:50 +0000)
commit61b0ab034c38090b9b39822e0ce0d39b77d4cf15
tree66d64cfc3e7ef5b847ee292c305ad5bed2361753
parent1e24d7e5d00701735fccd7a325cf00e0312a5b00
Update objects for new Grits expose settings

All objects are drawn with sorting (depth testing) disabled except for
the Level-II sweeps and volume scans. The order things appear is
determined based on the level they are drawn in since depth testing
works across levels now.

The order is as follows, from lowest to highest:

  WORLD+1 - Counties outlines     - no depth test
  WORLD+1 - County-based warnings - no depth test
  WORLD+2 - Conus radar overlays  - no depth test
  WORLD+3 - Level-II radar sweeps - depth test enabled
  WORLD+4 - Storm-based warnings  - no depth test
  WORLD+5 - Level-II Volume scans - depth test enabled
  OVERLAY - Level-II site markers - no depth test
  HUD     - Level-II color table  - no depth test

The advantage to this order is that:
  - County-based warnings do not effect the radar colors
  - Level-II sweeps do not hide storm-based warnings
  - Storm based warnings don't show through volume scans
src/plugins/alert.c
src/plugins/level2.c
src/plugins/radar.c