1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-28 06:39:55 +00:00
Commit Graph

259 Commits

Author SHA1 Message Date
Zeno Rogue
c131e21198 namespace hyperpoint_vec removed 2019-09-12 22:50:12 +02:00
Zeno Rogue
60bf28f359 transmatrix back to old definition (some weird bugs?) but improved 2019-09-12 22:50:12 +02:00
Zeno Rogue
4f27b12ca2 nilv:: preliminary implementation 2019-09-12 22:50:11 +02:00
Zeno Rogue
ad5ec24e7b transmatrix now implemented as an array of hyperpoints 2019-09-12 22:50:11 +02:00
Zeno Rogue
c97ab10700 pushed unimplemented Product 2019-09-12 22:50:09 +02:00
Zeno Rogue
dd5d317cb3 Sol geometry 2019-09-12 22:50:09 +02:00
Zeno Rogue
2e77224c56 rug warning now can be disabled 2019-09-12 22:50:09 +02:00
Zeno Rogue
76d82d4e9a fixed matrix sequence in rug.cpp 2019-09-12 22:50:08 +02:00
Zeno Rogue
3da305b4ca fog is now affected by the background color 2019-09-12 22:50:06 +02:00
Zeno Rogue
688ad336ae rug:: fixed depthwrite 2019-09-12 22:50:05 +02:00
Zeno Rogue
8295251cdc multigame support, including dualmode 2019-09-12 22:50:03 +02:00
Zeno Rogue
b6e303ec7d MAJOR refactoring: all geometry-dependent data (tessf, geom3::, shapes, hpc) are now contained in a structure 2019-09-12 22:50:03 +02:00
Zeno Rogue
f7d580fa9c replaced fts variants with a single fts 2019-09-12 22:50:02 +02:00
Zeno Rogue
ae100b1e72 removed some obsolete debug printfs 2019-09-12 22:50:02 +02:00
Zeno Rogue
92a22a5e3f rug :: partially generalized to 3D (but no interesting results) 2019-09-12 22:50:02 +02:00
Zeno Rogue
6e26508a77 replaced some instances of double to ld, so that everything compiles when ld is redefined to float 2019-09-12 22:43:00 +02:00
Zeno Rogue
6fcb42d9d7 rug:: better live changing of model_distance and modelscale 2019-09-12 22:43:00 +02:00
Zeno Rogue
0c20fdac3b rug:: live changing of the texture size 2019-09-12 22:43:00 +02:00
Zeno Rogue
e22602e343 rug:: gethyper no longer finds invalid triangles 2019-09-12 22:43:00 +02:00
Zeno Rogue
3c9e4db46e major cleanup of projection setting 2019-09-12 22:43:00 +02:00
Zeno Rogue
84af8f2b32 added some missing conformal::configure() 2019-09-12 22:42:59 +02:00
Zeno Rogue
4727e71590 rug:: bugfix: draw boundary and model elements (previously changing fillmodel had no effect on rug) 2019-09-12 22:42:58 +02:00
Zeno Rogue
f41e149688 rug:: an option to draw lines 2019-09-12 22:42:58 +02:00
?
ccc77b05fb rug:: CAP_CRYSTAL guards 2019-09-12 22:38:42 +02:00
?
f27bf01474 3d:: rug uses the new functions 2019-09-12 22:38:42 +02:00
Zeno Rogue
fd9fca6129 redesigned the Experiment with Geometry menu 2019-02-08 16:55:00 +01:00
Zeno Rogue
4f9e9c2e47 added sm::MAYDARK to some dialogs 2018-12-14 19:30:22 +01:00
Zeno Rogue
86c9f84df8 now compiles in C++11 2018-12-14 19:27:12 +01:00
Zeno Rogue
2958564622 rug:: cylinder works correctly in other native geometries 2018-12-14 19:27:12 +01:00
Zeno Rogue
b256ac70af improved key handling: numpad works as directions with numlock off and numbers with numlock on; shift+5 works now; better key assignments in crystal rug 2018-12-14 19:27:12 +01:00
Zeno Rogue
9b21b9c5a0 improved key handling: shift+5 works now, and better key assignments in crystal rug 2018-12-14 19:27:12 +01:00
Zeno Rogue
58d584eed2 rug:: cylinder: removed debug, better initial orientation, subdivision done 2018-12-14 19:27:12 +01:00
Zeno Rogue
d8bf550d37 surface 3D graphics are now automatically disabled in rug (won't work correctly with quotient rugs anyway) and in pmodels which do not support it 2018-12-14 19:27:12 +01:00
Zeno Rogue
14fde6ea0a rug:: correct display for cylinder/Mobius 2018-12-14 19:27:11 +01:00
Zeno Rogue
92eaf96930 crystal:: 3D mode works from the Rug menu, and linked to from its menu 2018-12-14 19:27:11 +01:00
Zeno Rogue
3182600a58 3D display of Crystal 2018-12-14 19:27:11 +01:00
Zeno Rogue
f166baebfb rug:: removed triangle removal when get_sightrange is taken away (it is not what we want if we change geometry 2018-12-11 22:10:53 +01:00
Zeno Rogue
460eb19881 implemented new geometries: cylinder and (only one for now) Mobius band 2018-12-11 22:10:53 +01:00
Zeno Rogue
2fa265ac10 implemented a better system for logging and binary output 2018-11-24 21:23:02 +01:00
Zeno Rogue
0ed74b12c4 fixed the rendering of Hypersian Rug 2018-11-20 19:01:10 +01:00
Zeno Rogue
d935febf09 refactored some global and stereo:: variables into display_data structure 2018-11-18 18:26:56 +01:00
Zeno Rogue
680dca90c8 shaderside projection 2018-11-18 18:26:55 +01:00
Zeno Rogue
7b4028418e arg:: most important dialogs can be launched from command line 2018-11-11 11:27:36 +01:00
Zeno Rogue
549d86b15d arg:: shift_arg_formula used instead of argf 2018-11-11 11:27:36 +01:00
Zeno Rogue
0d4ab71115 rug no longer always renders in alpha=1 2018-10-23 17:07:44 +02:00
Zeno Rogue
59ff4c2266 depth inversion in rug (used in pentagonal exploration) 2018-09-03 16:32:11 +02:00
Zeno Rogue
d2c22a857a assume that the player is found if not rendering rug 2018-09-02 15:11:35 +02:00
Zeno Rogue
0abfcb683f Hypersian Rug mode works with Archimedean tilings 2018-08-24 21:47:09 +02:00
Zeno Rogue
e1c49a83fa fixed displayspin in syntetic 2018-08-19 16:28:36 +02:00
Zeno Rogue
682f804576 major rewrite: unified the common parts of heptagon and cell via struct connection<T> and struct walker<T> 2018-08-18 00:46:45 +02:00
Zeno Rogue
9faa285814 New file geometry2.cpp, with moved ggmatrix, relative_matrix, virtualRebase, and new get_corner_position family. Refactored in floorpatterns, textures, and grid to use get_corner_position family. 2018-08-17 16:47:06 +02:00
Zeno Rogue
1b44899624 line quality option 2018-08-01 11:07:22 +02:00
Zeno Rogue
4d2f79ba95 rewritten the system to display 3D. This fixes the spherical display not working in stereo mode, and is more clean. 2018-07-22 00:39:57 +02:00
Arthur O'Dwyer
de8926ac5d Fix some truncation warnings for the benefit of MSVC.
rug.cpp(1266): warning C4305: 'argument': truncation from 'double' to 'GLclampf'
    tour.cpp(629): warning C4305: '=': truncation from 'int' to 'bool'
2018-07-08 22:19:42 -07:00
Zeno Rogue
63869c6d33 renamed the size function to isize 2018-06-22 14:47:24 +02:00
Zeno Rogue
fbba325587 silenced the uninitialized variable warning 2018-06-13 00:40:36 +02:00
Zeno Rogue
28a4768ea4 more uniformization of add/back, 'space' in grapheditor works in autocheat, fixed missing XLAT in surface 2018-06-13 00:11:26 +02:00
Zeno Rogue
3881a7dd97 more cleanup with uniformizing the keys for 'back' and 'help' 2018-06-13 00:00:01 +02:00
Zeno Rogue
44affc3e9d resolved conflicts introduced by merging zenorogue/hyperrogue#21 2018-06-12 23:28:06 +02:00
Zeno Rogue
56baba800b moved more includes to sysconfig.h 2018-06-12 23:10:20 +02:00
Zeno Rogue
097be66f65 improved the torus/hyperrug/native sphere geometry; modelscale is set when you do this 2018-06-12 19:26:34 +02:00
Zeno Rogue
4c619e60dd moved all the HyperRogue stuff except RogueViz to namespace 'hr' -- useful when using hr as a library 2018-06-11 01:58:31 +02:00
Zeno Rogue
d3662a935d fix compiler warnings: catch(out_of_range&) 2018-06-07 13:58:00 +02:00
Zeno Rogue
b8dbaadff6 rendering torus in spherical native geometry now creates the actual torus 2018-05-28 19:10:57 +02:00
Zeno Rogue
38411a9a8b torus rendering no longer creates darker areas because of side difference 2018-05-28 19:10:21 +02:00
Zeno Rogue
b294ec288d gp:: used 'char' which failed on Android where 'char' is unsigned. Fixed. Also improved Xprintf 2018-05-27 01:07:44 +02:00
Zeno Rogue
530c689c98 RogueViz fixes 2018-05-18 17:34:12 +02:00
Zeno Rogue
07e853d637 external plugins now can control the fog in the Rug mode 2018-05-15 23:30:37 +02:00
Zeno Rogue
0197063fb6 ODS projection now works in Euclidean and hyperbolic 2018-05-15 23:29:44 +02:00
Zeno Rogue
89841a6717 changed the default model_distance to 4 2018-04-22 11:13:25 +02:00
Zeno Rogue
d3c1a64733 arg:: rug:: added -rugdist parameter 2018-04-09 15:56:23 +02:00
Zeno Rogue
229f717678 split sight/game/generation range; bonuses instead of absolute values 2018-04-03 23:34:47 +02:00
Zeno Rogue
6399ef8180 exporting more in hyper.h 2018-03-30 00:20:50 +02:00
Zeno Rogue
864cc38974 Added surfaces of constant negative curvature (surface.cpp) 2018-03-24 17:21:25 +01:00
Zeno Rogue
39e77cee9f rug exports more to hyper.h; alt makes rotation slower 2018-03-24 15:17:17 +01:00
Zeno Rogue
bc523b6e65 one missing patch 2018-03-24 15:16:03 +01:00
Zeno Rogue
ac37b6df99 more elegant cellwalkers 2018-03-24 12:59:01 +01:00
Zeno Rogue
00a72f2f9c Android logging of the rug errors 2018-03-02 13:06:28 +01:00
Zeno Rogue
0ee99c4c73 make detect_cusp acknowledge err_zero_current 2018-02-27 19:47:48 +01:00
Zeno Rogue
c0c34cacac editing anticross actually edited ruggo 2018-02-27 19:47:35 +01:00
Zeno Rogue
4447a999ed CLI option for anti-crossing 2018-02-27 19:39:54 +01:00
Zeno Rogue
d641fee124 menu options for anti-crossing and ruggo 2018-02-27 19:39:46 +01:00
Zeno Rogue
3f4d5d9462 renderlate fix 2018-02-27 19:39:22 +01:00
Zeno Rogue
3dc776a8ca fixed rug ODS 2018-02-27 19:38:45 +01:00
Zeno Rogue
16ca2a962e anti-crossing system in rug 2018-02-27 19:37:57 +01:00
Zeno Rogue
884c1b6455 'subdivide first' option in rug (does not work well) 2018-02-27 19:27:20 +01:00
Zeno Rogue
9a1093fc6c cleanup: help. Also rug help displayed when rug is on 2018-02-26 13:15:33 +01:00
Zeno Rogue
0412ea7b7c glhr::id is now a constant; streamlined applymatrix 2018-02-20 11:30:39 +01:00
Zeno Rogue
babb8fbde4 removed the EUCSCALE parameter for consistency 2018-02-20 11:15:08 +01:00
Zeno Rogue
e77a126c81 fixed the descriptions in the stereo vision config; added some previously untranslated texts 2018-02-13 13:37:20 +01:00
Zeno Rogue
2072990474 More options for the Rug 2018-02-12 16:21:55 +01:00
Zeno Rogue
4b0cbeebcd fixed -rugon, added -ruggo for automatic movement in rug 2018-02-12 12:49:47 +01:00
Zeno Rogue
cab8a0a38f Works online now! 2018-02-11 19:08:17 +01:00
Zeno Rogue
d01d772669 more changes to make it work on iOS 2018-02-11 02:19:49 +01:00
Zeno Rogue
1391a7fe4d more shader cleanup 2018-02-10 18:21:19 +01:00
Zeno Rogue
660af7827f Further OpenGL cleanup. Also fixed the problems with incorrect mouse control. 2018-02-09 03:40:46 +01:00
Zeno Rogue
120797d7ce uniformizing vertex attribute arrays 2018-02-09 01:46:14 +01:00
Zeno Rogue
4966bde3d4 started work on shaders.cpp 2018-02-09 00:29:20 +01:00
Zeno Rogue
6cc3177524 some fixes and 10.3g 2018-02-04 01:04:29 +01:00
Zeno Rogue
d3d6eec424 touch-based rug movement in android 2018-02-03 20:04:19 +01:00
Zeno Rogue
e5f1670702 moved glError so that it is available without GLFONT 2018-02-03 20:03:16 +01:00
Zeno Rogue
0a7c07fa7d more changes to make Rug work on Android 2018-02-03 19:19:27 +01:00
Zeno Rogue
bd84b76c1b mobile orientation handling 2018-02-03 14:35:06 +01:00
Zeno Rogue
ad172724e8 made it compile with RUG on emscripten (at least it should -- it does not work for me because of an emscripten bug apparently) 2018-02-03 14:31:17 +01:00
Zeno Rogue
c7f93c3054 more work on enabling Rug in mobile 2018-02-03 13:54:51 +01:00
Zeno Rogue
dcc3e11287 renderbuffer should work without OpenGL 2018-02-03 13:50:47 +01:00
Zeno Rogue
b3f047ea6a reworked 3D vision 2018-02-03 13:41:49 +01:00
Zeno Rogue
8e8ece7162 refactored drawing to a texture; HQ shots can now be saved using OpenGL 2018-02-01 13:42:47 +01:00
Zeno Rogue
f6750c8dcd CAP_ODS guards 2018-01-31 00:16:16 +01:00
Zeno Rogue
632f8dbda5 fixed largeS2-in-S3 and incorrect qvalid in Hypersian Rug 2018-01-31 00:11:49 +01:00
Zeno Rogue
c93d7360f9 a typo fix 2018-01-29 16:31:28 +01:00
Zeno Rogue
d7158bcdbe improvements to the ODS projection 2018-01-29 16:31:14 +01:00
Zeno Rogue
e590000627 comments on the rugpoint structure 2018-01-29 16:30:55 +01:00
Zeno Rogue
cd988324a0 rug now works correctly with distance > 7 2018-01-29 16:30:44 +01:00
Zeno Rogue
5f3c45df8d finger implemented 2018-01-29 16:30:21 +01:00
Zeno Rogue
1d5259c074 use checktide always when sightrange>7 2018-01-29 16:28:06 +01:00
Zeno Rogue
485a77a5f6 keepshape option removed 2018-01-28 12:25:56 +01:00
Zeno Rogue
8c8ea37ce0 option -rugtisze 2018-01-28 12:21:29 +01:00
Zeno Rogue
f6957614b8 rugmodelscale can be changed live now 2018-01-28 12:21:10 +01:00
Zeno Rogue
29e2589fcb ODS projection 2018-01-28 12:20:21 +01:00
Zeno Rogue
86f1a4dead More porting. 2018-01-05 19:05:41 +01:00
Zeno Rogue
0dd5ed1505 made the code compile with C++11 (not requiring C++14) 2018-01-05 17:18:37 +01:00
Zeno Rogue
6479ddb73d Texts written/translated for 10.3 2018-01-04 20:05:34 +01:00
Zeno Rogue
86e760a562 more help for Rug 2018-01-03 11:22:37 +01:00
Zeno Rogue
cdba8c76b3 added some help texts to the Rug. 2018-01-03 02:04:34 +01:00
Zeno Rogue
d3e789bc93 Magnetic and Switch V1 2017-12-30 15:12:15 +01:00
Zeno Rogue
9948b09b69 removed optimization comments from Rug; good_shapes are now subdivided correctly 2017-12-29 14:35:18 +01:00
Zeno Rogue
9e45be592a offscreen check in hyperrug 2017-12-29 14:31:18 +01:00
Zeno Rogue
bdb84c5a33 Rug works better with non-truncated geometries, especially with a4 geometries which previously basically did not work 2017-12-29 12:54:50 +01:00
Zeno Rogue
7685868fb2 Hypersian Rug now works with other tori/Klein bottles 2017-12-28 18:39:49 +01:00
Zeno Rogue
11569c693d big change: more configuration for the torus (and also Klein bottle) 2017-12-28 16:46:10 +01:00
Zeno Rogue
e4020a78d0 more work on spherical native geometry 2017-12-27 21:08:31 +01:00
Zeno Rogue
863f2f9696 elliptic; bugfix 2017-12-27 19:55:00 +01:00
Zeno Rogue
b5377610ba ctrl to rotate around 2017-12-27 19:10:34 +01:00
Zeno Rogue
e0ec332602 implemented FOV measure, unified old rug::scale with modeldistance 2017-12-27 18:53:00 +01:00
Zeno Rogue
d3e8cd37e2 new items in the Hypersian Rug menu 2017-12-27 15:25:10 +01:00
Zeno Rogue
b65e04eefd fog for rug in spherical; fixed bugs with mouse in spherical rug 2017-12-27 14:12:27 +01:00
Zeno Rogue
0db0a77dcf rug::gethyper in perspective mode 2017-12-27 13:09:58 +01:00
Zeno Rogue
685e0d3068 using correct shapes when available 2017-12-27 11:59:37 +01:00
Zeno Rogue
540f0678ee horospherical rug for Euclidean IN Hyperbolic 2017-12-27 10:52:54 +01:00
Zeno Rogue
f6fa051eab torus movement 2017-12-27 06:31:47 +01:00
Zeno Rogue
65dd903b2f fixed strafe directions 2017-12-26 00:40:09 +01:00
Zeno Rogue
0a9f69f0ef advanced Hypersian Rug (no options yet) 2017-12-25 23:47:57 +01:00
Zeno Rogue
a3d4bfdd7d fixed some compiler errors 2017-11-07 16:16:04 +01:00
Zeno Rogue
f5a8b2a0c2 more precise torus-rug rendering 2017-11-07 14:39:26 +01:00
Zeno Rogue
b5382c5670 Rug mentions it works in Torus now 2017-11-07 14:20:19 +01:00
Zeno Rogue
fcec90d8fb click out-of-torus does nothing now 2017-11-07 14:17:13 +01:00
Zeno Rogue
a14cced41d Hypersian Rug for the torus 2017-11-06 19:24:02 +01:00
Arthur O'Dwyer
43cb9c0bf4 Change every "pop this menu" option text to the two words "go back".
And add translations for "go back", copied from the existing translations
for the word "return".
2017-10-30 18:48:14 -07:00
Arthur O'Dwyer
dae6b9e3d3 Consistently use "space" for the "pop this menu" option in all submenus.
The "pop this menu" option's *text* is still highly variable among all
the different menus, which could make it hard to navigate, but at least
if you're using the keyboard it's now easy to "go back".

Plus, the rogueviz menu incorrectly reported "(v) exit menu" when actually
`v` was already in use by an earlier option. This is now fixed.
2017-10-30 18:48:14 -07:00