1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-26 10:24:49 +00:00

MAJOR refactoring: all geometry-dependent data (tessf, geom3::, shapes, hpc) are now contained in a structure

This commit is contained in:
Zeno Rogue
2019-05-26 18:04:02 +02:00
parent 9c5344289a
commit b6e303ec7d
35 changed files with 3893 additions and 3836 deletions

View File

@@ -693,7 +693,8 @@ void resetGL() {
floor_textures = NULL;
}
#endif
resetGeometry(); // includes buildPoly
cgi.require_shapes();
cgi.initPolyForGL();
}
#endif
@@ -1101,7 +1102,7 @@ void displayColorButton(int x, int y, const string& name, int key, int align, in
}
ld textscale() {
return vid.fsize / (current_display->radius * crossf) * (1+vid.alpha) * 2;
return vid.fsize / (current_display->radius * cgi.crossf) * (1+vid.alpha) * 2;
}
// bool notgl = false;
@@ -1238,7 +1239,7 @@ void initgraph() {
#if CAP_COMMANDLINE
arg::read(2);
#endif
precalc();
cgi.prepare_basics();
#if CAP_SDL
setvideomode();