1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-10-31 19:36:16 +00:00
Commit Graph

200 Commits

Author SHA1 Message Date
Zeno Rogue
7ad955dcff fixed two-eye rendering in stereo modes which should not cause that 2024-01-07 09:07:54 +01:00
Zeno Rogue
39ddc3dc33 fix compile bug 2023-12-02 19:34:06 +01:00
Arthur O'Dwyer
62629f3e70 Change static const to static constexpr wherever possible
Since we require C++11, most of these consts can be constexpr.

Two `static const ld` remain non-compile-time-evaluable because
they depend on the runtime `log` function. One `static const cld`
remains non-compile-time because `std::complex<T>` doesn't become
constexpr until C++14.
2023-08-23 09:47:28 -08:00
Zeno Rogue
f2f62cf296 fixed sides in Euclidean hemisphere 2023-08-15 15:20:29 +02:00
Zeno Rogue
f3a0855df2 queuecurve_reuse 2023-08-15 14:28:38 +02:00
Zeno Rogue
e22c34b343 hemisphere in spherical 2023-08-15 14:21:19 +02:00
Zeno Rogue
b018582f44 fixed mdHyperboloid in spherical geometry 2023-08-15 11:00:43 +02:00
Zeno Rogue
63fc2c9c92 fixed get_side 2023-08-15 10:55:01 +02:00
Zeno Rogue
cb05649732 pconf.ball now a matrix (but not implemented draw_boundary yet) 2023-08-14 16:18:44 +02:00
Zeno Rogue
a7cf3c4d1c renaming also applied to drawing.cpp 2023-08-14 13:28:48 +02:00
Zeno Rogue
6806a0e7e3 renamed apply_ori to more intuitive scr_to_ori, also invert the matrix 2023-08-14 11:08:37 +02:00
Zeno Rogue
1554caa7b4 rotations are now represented as matrices, not angles 2023-08-08 16:27:52 +02:00
Zeno Rogue
61610282ca correct ordering of plain floors when z-ordering cannot be trusted in SVG or with alpha 2023-05-30 18:44:03 +02:00
Zeno Rogue
e6738f6c20 semidirect rendering 2023-05-15 02:50:41 +02:00
Zeno Rogue
e63feddb7c added MAXMDIM guards in various places 2023-04-15 01:29:59 +02:00
Zeno Rogue
d389a40bd9 removed unused variables 2023-04-15 01:14:56 +02:00
Zeno Rogue
5a4f6595e1 improved performance with MINIMIZE_GL_CALLS 2023-04-15 01:14:29 +02:00
Zeno Rogue
426c350a59 conformal square improved on sphere 2023-03-23 01:37:52 +01:00
Zeno Rogue
1b7f4b869e new Conformal Square projection (with transition and shader and Euclidean form) 2023-03-19 12:21:05 +01:00
Zeno Rogue
573304faab more detailed 3D depth settings 2023-02-18 18:32:01 +01:00
Zeno Rogue
85dffdbeff rewritten the embeddings more nicely 2023-01-27 00:27:10 +01:00
Zeno Rogue
86492d1181 Improved the UI for 'geodesic movement' setting, and also make it work correctly in SL2 and hyperbolic geometries 2022-12-25 12:14:36 +01:00
Zeno Rogue
33380fba89 noniso skies 2022-12-15 18:59:20 +01:00
Zeno Rogue
2f2e770d64 fixed a possible bug in gldraw -- ioffset instead of offset 2022-12-09 02:33:15 +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
b8b1df01e7 fixed some linewidth issues 2022-10-27 16:06:39 +02:00
Zeno Rogue
a7ca4c2902 relativistic projections added 2022-10-14 00:56:48 +02:00
Zeno Rogue
4cdc7db18d curvepoint_first function to loop curves automatically 2022-10-11 19:56:56 +02:00
Zeno Rogue
73c689211f shader flag to use no fog -- useful to display ultra-ideal points 2022-10-11 19:56:37 +02:00
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