1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-04 21:26:17 +00:00
Commit Graph

240 Commits

Author SHA1 Message Date
Zeno Rogue
f2cb72aaeb findfont debug only with DF_INIT 2023-05-15 19:36:10 +02:00
Zeno Rogue
24cd670de0 improvement to fontconfig support 2023-05-15 19:33:32 +02:00
Zeno Rogue
c03e9cfeb4
Merge pull request #300 from dulsi/master
Add optional fontconfig support.
2023-05-15 19:16:18 +02:00
Zeno Rogue
ba03d33959 embedding:: a simple general implementation of radar 2023-01-29 16:09:00 +01:00
Zeno Rogue
3e733ae6e9 Big change: spatial_embedding option 2022-12-09 02:33:15 +01:00
Zeno Rogue
42f96b768c improvements to sphere flipping 2022-12-04 14:48:12 +01:00
Zeno Rogue
06523e063e used cyclefix and raddif in more places; (c)spin90, (c)spin180 and spin180 functions; rephrased M_PI in terms of TAU and x._deg when applicable 2022-11-13 16:22:55 +01:00
Zeno Rogue
f0200ee32c color_diff function 2022-09-17 12:09:46 +02:00
Zeno Rogue
91b6628922 fixed SDL2 (with GLEW) on Windows 2022-06-10 18:45:15 +02:00
Zeno Rogue
15e09eb6ec fixed buggy resizing 2022-05-01 11:25:49 +02:00
Zeno Rogue
2c2b1ce127 in OpenGL need to reopen on resolution change 2022-04-26 16:19:02 +02:00
Zeno Rogue
8489550aed multi:: radar works correctly in split_screen 2022-03-27 22:47:51 +02:00
Zeno Rogue
08cfed6658 multi:: split-screen mode is now an option 2022-03-27 22:47:50 +02:00
Dennis Payne
3023b12e93 Add optional fontconfig support. 2022-02-08 12:44:51 -05:00
Dennis Payne
d31c330d8b Add HYPERFONTPATH to make it easier to package on Fedora. 2021-11-17 10:11:13 -05:00
Zeno Rogue
d57a3fcaa3 fixed REPLACE_LETTERS 2021-07-04 09:32:59 +02:00
Zeno Rogue
b6a6b1b442 an option to replace letters when foreign letters are not available 2021-06-25 15:14:50 +02:00
Zeno Rogue
168fc5705f usingGL on IOS 2021-06-03 13:26:10 +02:00
Zeno Rogue
31666007f3 fixup to get_requested_resolution on mobile 2021-06-03 13:26:10 +02:00
Zeno Rogue
0283eaa252 fixed GL settings in Android 2021-06-03 13:26:10 +02:00
Zeno Rogue
63570af240 XGD: filled circles and start with clearscreen 2021-06-03 13:26:10 +02:00
Zeno Rogue
44ecbccb89 added option -nomsg 2021-06-01 13:07:55 +02:00
Zeno Rogue
e78a170e7e added some missing CAP_SDL and CAP_GL guards 2021-05-23 16:00:49 +02:00
Zeno Rogue
355b8df23a added colors.cpp for all color-related functions 2021-03-25 10:56:20 +01:00
Zeno Rogue
16e3c549a0 in SDL1, don't reopen the window needlessly 2021-03-21 12:51:50 +01:00
Zeno Rogue
c47aa8ce3f fixed a function type error in mingw 2021-03-11 10:01:01 +01:00
Zeno Rogue
7cc628fb55 fixed to work with other CAP options 2021-03-10 08:40:43 +01:00
Zeno Rogue
26b53f0db7 more fixes to SDL2 setting modes 2021-03-09 16:04:02 +01:00
Zeno Rogue
56485f20a9 various changes and fixes to make coolfog and sky work correctly in VR 2021-03-09 13:12:53 +01:00
Zeno Rogue
c4ab8cca8b delete airbuf on resetGL 2021-03-09 10:43:50 +01:00
Zeno Rogue
353af95596 better window resizing in SDL2 2021-03-09 09:45:33 +01:00
Zeno Rogue
dd0e9ddae7 SDL2 improved cleanup 2021-03-07 22:31:36 +01:00
Zeno Rogue
23f9d58307 window can be set to non-resizable (useful for netgen) 2021-03-07 21:12:35 +01:00
Zeno Rogue
69f16c45b1 added border between font letters to avoid rendering artifacts 2021-03-07 21:12:12 +01:00
Zeno Rogue
0ceddf03a0 improved glfont rendering 2021-03-07 21:11:42 +01:00
Zeno Rogue
d8fd187986 in SDL2, SDL_gfx functions seem to use a different order of components 2021-03-07 14:14:53 +01:00
Zeno Rogue
df1db8ca03 fixed some bugs with SDL2 2021-03-07 14:12:18 +01:00
Zeno Rogue
4de8e6507d SDL2 fixup 2021-03-07 10:42:19 +01:00
Zeno Rogue
d09ffb37f0 added SDL_WINDOW_ALLOW_HIGHDPI 2021-03-06 14:57:27 +01:00
Zeno Rogue
f00696711a HyperRogue ported to SDL2 (in mymake do -sdl2) 2021-03-06 14:53:25 +01:00
Zeno Rogue
7bf88916fd disabled awareness on old MINGW 2021-02-07 22:55:11 +01:00
Zeno Rogue
b166b64006 added missing guards 2021-02-07 22:55:11 +01:00
Zeno Rogue
d2531aba5e fixed resetGL 2021-02-07 22:55:11 +01:00
Zeno Rogue
8ed6c72622 removed debug from resolution rework 2021-02-07 22:55:11 +01:00
Zeno Rogue
317e2637ec fixed potential crashes when setting fontsize to a too large value 2021-02-07 22:55:10 +01:00
Zeno Rogue
015f6227fa redone basic graphics settings (vsync, resolution, fullscreen, gl/aa) 2021-02-07 22:55:10 +01:00
Zeno Rogue
0de8ce9a10 initial implementation of VR 2020-11-22 17:58:40 +01:00
Zeno Rogue
ef3170dce7 removed the old VR preparation 2020-11-19 18:19:17 +01:00
Zeno Rogue
deae12dea6 an attempt to set DPI awareness on Windows 2020-11-19 18:18:24 +01:00
Arthur O'Dwyer
d163a01b8a Remove USE_UNORDERED_MAP because it has bit-rotted.
Trying to compile with `-DUSE_UNORDERED_MAP` produces lots of compiler errors
like these, because of missing `std::hash` specializations.
Also, `#define unordered_map map` is just evil!

```
./nonisotropic.cpp:875:36: note: in instantiation of template class 'std::__1::unordered_map<hr::nilv::mvec, hr::heptagon *,
      std::__1::hash<hr::nilv::mvec>, std::__1::equal_to<hr::nilv::mvec>, std::__1::allocator<std::__1::pair<const hr::nilv::mvec, hr::heptagon
      *> > >' requested here
    unordered_map<mvec, heptagon*> at;
                                   ^

./nonisotropic.cpp:239:58: note: in instantiation of template class 'std::__1::unordered_map<std::__1::pair<hr::heptagon *, hr::heptagon *>,
      hr::heptagon *, std::__1::hash<std::__1::pair<hr::heptagon *, hr::heptagon *> >, std::__1::equal_to<std::__1::pair<hr::heptagon *,
      hr::heptagon *> >, std::__1::allocator<std::__1::pair<const std::__1::pair<hr::heptagon *, hr::heptagon *>, hr::heptagon *> > >'
      requested here
    unordered_map<pair<heptagon*, heptagon*>, heptagon*> at;
                                                         ^

./nonisotropic.cpp:457:49: error: no matching member function for call to 'iadj'
      while(h1->distance < h2->distance) back = iadj(h2, down) * back, h2 = h2->cmove(down);
                                                ^~~~
cell.cpp:42:15: note: candidate function not viable: no known conversion from 'hr::sn::hrmap_solnih' to 'hr::hrmap' for object argument
  transmatrix iadj(heptagon *h, int d) {
              ^
cell.cpp:41:22: note: candidate function not viable: no known conversion from 'hr::sn::hrmap_solnih' to 'hr::hrmap' for object argument
  struct transmatrix iadj(cell *c, int i) { cell *c1 = c->cmove(i); return adj(c1, c->c.spin(i)); }
                     ^
```
2020-10-19 13:15:29 -04:00