1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-15 01:34:49 +00:00
Commit Graph

225 Commits

Author SHA1 Message Date
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
Zeno Rogue
052854ec74 hyperweb:: auto-resizing 2020-10-15 16:35:44 +02:00
Zeno Rogue
d64c5e338c extra guards 2020-10-15 16:33:52 +02:00
Zeno Rogue
f41ce7c42a changed the WEB size so that the sidemenu is used by default 2020-09-22 15:50:38 +02:00
Zeno Rogue
e05256725e EX setcameraangle 2020-09-11 11:03:53 +02:00
Zeno Rogue
fc283bd527 allow larger letters 2020-08-01 16:41:44 +02:00
Zeno Rogue
82f32607e6 MAJOR CHANGE: replaced (transmatrix,band_shift) pair with shiftmatrix 2020-07-28 22:06:14 +02:00
Zeno Rogue
f3c35de400 more guards cont. 2020-07-03 14:48:36 +02:00
Zeno Rogue
89585f004b fixed some guards (in progress) 2020-07-03 14:42:33 +02:00
Zeno Rogue
6f6586b3f2
Merge branch 'master' into hooks-naming 2020-04-19 13:39:07 +02:00
Zeno Rogue
9c61da86f3 removed unused global variable 2020-04-17 15:48:10 +02:00
Zeno Rogue
0472bf764f moved all projection-related parameters to a special struct; another copy of that struct created for rug 2020-04-17 00:53:58 +02:00
Arthur O'Dwyer
0d42168139 Make hookset<T> a pointer type, just like purehookset.
No more declaring `hookset<T> *hooks_foo`; now it's just
`hookset<T> hooks_foo` at global scope. This clears the way to
make `hookset<T>` into a class type if we want.
2020-04-12 10:50:18 -04:00
Zeno Rogue
134d7493ed added margins for mobiles 2020-04-06 09:13:20 +02:00
Zeno Rogue
9a84dfb497 adjusted mobile to the new system 2020-04-06 09:13:20 +02:00
Kai A. Hiller
f0cdc21dea Fix setting doublebuffering 2020-03-26 11:17:27 +01:00