1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-03-19 11:29:43 +00:00

nisot::local_perspective moved to display_data

This commit is contained in:
Zeno Rogue
2019-11-14 17:20:55 +01:00
parent 0f84ec8dc8
commit 3eee611eca
8 changed files with 23 additions and 21 deletions

View File

@@ -17,6 +17,8 @@ struct display_data {
cell *precise_center;
/** The current rotation, relative to precise_center. */
transmatrix view_matrix;
/** Camera rotation, used in nonisotropic geometries. */
transmatrix local_perspective;
/** The view relative to the player character. */
transmatrix player_matrix;
/** On-screen coordinates for all the visible cells. */
@@ -52,6 +54,7 @@ struct display_data {
#define centerover (current_display->precise_center)
#define gmatrix (current_display->cellmatrices)
#define gmatrix0 (current_display->old_cellmatrices)
#define NLP (current_display->local_perspective)
#endif