-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consolidate overmap terrain and symbol code
Make the three different places that draw overmap displays use a single function to get the color and symbol to draw at a point, instead of them each doing it their own way. To support the slightly different ways each of them do it, as well as the extreme degree of options presented by the main overmap view, this function takes two different structs as arguments. The first struct is the immediate "arguments" of the function (things that change for each tile), while the second struct outlines the options this display wants and does not change between calls. A pointer to another struct can be provided for a minor LRU optimization.
- Loading branch information
1 parent
352b387
commit 7ef7a79
Showing
4 changed files
with
293 additions
and
277 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.