~widelands-dev/widelands/bug-1826744-lobby-commands

« back to all changes in this revision

Viewing changes to src/graphic/gl/fields_to_draw.h

  • Committer: Wideland's Bunnybot
  • Date: 2019-05-31 19:31:45 UTC
  • mfrom: (9129.4.5 workarea-fixes)
  • Revision ID: bunnybot@widelands.org-20190531193145-tyim1tqwueyc8kcu
Merged lp:~widelands-dev/widelands/workarea-fixes:
· Draw a narrow border around workareas for better visibility
· Improve performance by only recalculating the workarea shader data when needed
· Add the hotkey W to enable/disable highlighting workarea overlaps

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
                return &fields_[index];
97
97
        }
98
98
 
99
 
private:
100
99
        // Calculates the index of the given field with ('fx', 'fy') being geometric
101
100
        // coordinates in the map. Returns INVALID_INDEX if this field is not in the
102
101
        // fields_to_draw.
112
111
                return yidx * w_ + xidx;
113
112
        }
114
113
 
 
114
private:
115
115
        // Minimum and maximum field coordinates (geometric) to render. Can be negative.
116
116
        int min_fx_ = 0;
117
117
        int max_fx_ = 0;