1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-11 12:00:25 +00:00
Commit Graph

169 Commits

Author SHA1 Message Date
Arthur O'Dwyer
0ae74aad62 Fix more instances of Clang's -Wunqualified-std-cast-call 2022-07-05 13:28:00 -04:00
Zeno Rogue
88fcca886c fixed write_in_space to use poly_outline 2022-06-08 18:00:43 +02:00
Zeno Rogue
b6b32d2c2b fixed sl2 rendering 2022-05-28 18:44:42 +02:00
Zeno Rogue
a6dc4b9314 new projections mostly for Solv: Lie perspective and Lie orthogonal 2022-05-17 09:45:09 +02:00
Zeno Rogue
59078497dd arb:: support for apeirogons using '*inf' 2022-04-24 22:57:34 +02:00
Zeno Rogue
589d2dd72c hemisphere in spherical now produces the hyperboloid model 2022-04-07 20:50:16 +02:00
Zeno Rogue
8e710784df fixed scale_at for cylindrical projections 2022-03-27 22:47:50 +02:00
Zeno Rogue
00c71c5212 export curvedata 2021-12-12 00:30:07 +01:00
Zeno Rogue
96c143da8e backandfront projection option 2021-09-18 01:39:09 +02:00
Zeno Rogue
e8e6d0aa25 two-sided display of hyperbolic disk with -1<pconf.alpha<0 2021-09-16 22:26:23 +02:00
Arthur O'Dwyer
090e084dd4 Add explicit and override consistently everywhere else. NFCI. 2021-07-11 18:03:08 -04:00
Zeno Rogue
241e731663 fixed a memory leak -- not clearing finf.tvertices 2021-06-25 18:52:18 +02:00
Zeno Rogue
f9fec7607f vertex debug improved 2021-06-06 10:13:57 +02:00
Zeno Rogue
3f7fc5f2b9 added CAP_EXTFONT for when font textures are not available (i.e., mobile devices) 2021-06-01 13:07:55 +02:00
Zeno Rogue
4cdadea45f generalized write_in_space 2021-06-01 13:07:36 +02:00
Zeno Rogue
e78a170e7e added some missing CAP_SDL and CAP_GL guards 2021-05-23 16:00:49 +02:00
Zeno Rogue
b2c1e82d17 fixed ASCII display without OpenGL 2021-04-25 12:03:06 +02:00
Zeno Rogue
5a73510c4f added some guards for MAXMDIM >= 4 and CAP_SOLV 2021-03-30 11:27:48 +02:00
Zeno Rogue
355b8df23a added colors.cpp for all color-related functions 2021-03-25 10:56:20 +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
95d4e942e2 removed obsolete profiling 2021-03-09 10:45:44 +01:00
Zeno Rogue
a25ca511c3 fixup to strings on map 2021-03-07 21:31:30 +01:00
Zeno Rogue
b69ea3886e vr:: strings on map are now drawn correctly 2021-03-07 21:13:31 +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
f00696711a HyperRogue ported to SDL2 (in mymake do -sdl2) 2021-03-06 14:53:25 +01:00
Zeno Rogue
b744107069 fixed MINIMIZE_GL_CALLS 2021-02-07 22:55:11 +01:00
Zeno Rogue
015f6227fa redone basic graphics settings (vsync, resolution, fullscreen, gl/aa) 2021-02-07 22:55:10 +01:00
Zeno Rogue
c1386d49b7 no in_vr_sphere except in sphere 2021-02-07 22:55:10 +01:00
Zeno Rogue
f5ac66513c fixed CAP_VR guards 2020-12-31 19:11:14 +01:00
Zeno Rogue
0f0c4a5d02 vr:: point to the correct side of the sphere 2020-12-31 19:11:14 +01:00
Zeno Rogue
1b976d364b uniform VR control 2020-12-31 19:11:14 +01:00
Zeno Rogue
e4e1a856e6 replace vrhr::state checking with nicer functions 2020-12-31 19:11:14 +01:00
Zeno Rogue
2e0ddd5a48 vr:: correctly rendered 2D sphere 2020-12-31 19:11:13 +01:00
Zeno Rogue
6217ec4702 drawing:: removed hiliteclick debug 2020-12-31 19:11:13 +01:00
Zeno Rogue
f9d65a2e37 added some missing CAP_VR guards, more work on 2D in VR 2020-12-31 19:11:13 +01:00
Zeno Rogue
eb6d186f00 2D models in 3D (WIP) 2020-12-31 19:11:13 +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
5312459d16 fixed SLR graphical duplication needlessly called outside of SLR 2020-11-08 11:51:36 +01:00
Zeno Rogue
71e8f84cec using GLWRAP 2020-11-08 11:49:19 +01:00
Zeno Rogue
b1cb66e468
Merge pull request #129 from Quuxplusone/unordered-map
Remove USE_UNORDERED_MAP because it has bit-rotted.
2020-11-05 20:03:13 +01:00
Zeno Rogue
8c4b700466 show_hyperboloid_flat option 2020-11-01 20:10:08 +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
b74509c95a Five new projections: Poor Man (hyperbolic only), Panini, retroazimuthal: Craig, Hammer, Littrow (retro-Hammer buggy on sphere) 2020-10-08 18:22:28 +02:00
Zeno Rogue
c6ed4ea736 fixed broken models with orientation change 2020-09-16 23:49:17 +02:00
Zeno Rogue
9a8d386422 fixed broken_projection with tinf 2020-09-16 23:49:17 +02:00
Zeno Rogue
5f33d6b51b drawing:: broken_projection as a separate function 2020-09-16 23:49:17 +02:00
Zeno Rogue
e26f8f5a5b optimized inverses 2020-09-16 23:49:17 +02:00
Zeno Rogue
2e47adef1c new projections based on cartography 2020-09-16 23:49:17 +02:00
Zeno Rogue
c5f9005405 fixed equidistant/equiarea projections in S2 2020-09-15 19:13:24 +02:00