1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00
Commit Graph

250 Commits

Author SHA1 Message Date
Zeno Rogue
82f24b4b6c exporting necessary stuff all over (in progress) 2019-09-12 22:50:16 +02:00
Zeno Rogue
caf838ed22 accessors created for shader uniforms 2019-09-12 22:50:16 +02:00
Zeno Rogue
9647cbd47e added #include hyper.h to all cpp files 2019-09-12 22:50:16 +02:00
Zeno Rogue
98ddecc63e removed init.cpp 2019-09-12 22:50:16 +02:00
Zeno Rogue
02269267c9 slr:: drawing of looped images, better shader in general, special sightrange setting 2019-09-12 22:50:15 +02:00
Zeno Rogue
1e6970ca28 hybrid:: refactored the common parts of prod and sl2, also used them when applicable 2019-09-12 22:50:15 +02:00
Zeno Rogue
136b931609 PSL(2,R) 2019-09-12 22:50:15 +02:00
Zeno Rogue
0811f8f2d0 product:: no crash on load when saved 2019-09-12 22:50:14 +02:00
Zeno Rogue
e5fb06e6cd product:: HUD items displayed correctly 2019-09-12 22:50:14 +02:00
Zeno Rogue
43a3d0130e product:: shader-side H2xE 2019-09-12 22:50:13 +02:00
Zeno Rogue
00f4f4fca5 fully turnable product spaces 2019-09-12 22:50:13 +02:00
Zeno Rogue
6958cbcbd9 product:: preliminary version (no turning) 2019-09-12 22:50:13 +02:00
Zeno Rogue
f3dd779947 no more crash when saving config in arcm 2019-09-12 22:50:13 +02:00
Zeno Rogue
96bf478482 renamed DIM to GDIM 2019-09-12 22:50:13 +02:00
Zeno Rogue
8b1c7bffe4 initial reformatting of comments for Doxygen 2019-09-12 22:50:13 +02:00
Zeno Rogue
0ef57dde15 further cleanup 2019-09-12 22:50:13 +02:00
Zeno Rogue
ad03115097 further cleanup 2019-09-12 22:50:13 +02:00
Zeno Rogue
609d1b91d3 further cleanup 2019-09-12 22:50:13 +02:00
Zeno Rogue
5ea055b39e split namespace conformal into models and history 2019-09-12 22:50:12 +02:00
Zeno Rogue
a76a5dd265 further cleanup 2019-09-12 22:50:12 +02:00
Zeno Rogue
c2d56fb9bc autohdr.h applied in more files 2019-09-12 22:50:12 +02:00
Zeno Rogue
24a2e6178a unused function displaynum removed 2019-09-12 22:50:12 +02:00
Zeno Rogue
8ac64fc2a0 nilv:: Nil shader, and improved geodesics 2019-09-12 22:50:11 +02:00
Zeno Rogue
9350053c49 renamed mdSolPerspective to mdGeodesic 2019-09-12 22:50:11 +02:00
Zeno Rogue
4f27b12ca2 nilv:: preliminary implementation 2019-09-12 22:50:11 +02:00
Zeno Rogue
1e81ed606d solv:: graphical coordinates are now always standard -- local_perspective used in all models 2019-09-12 22:50:10 +02:00
Zeno Rogue
90aa7b5c02 solv:: removed ILP for simplicity and better performance 2019-09-12 22:50:10 +02:00
Zeno Rogue
60778a6896 new renderer for Solv 2019-09-12 22:50:10 +02:00
Zeno Rogue
a3a22598ba delete[] xbuffer 2019-09-12 22:50:10 +02:00
Zeno Rogue
2f804e9f1e fixes for older compilers 2019-09-12 22:50:10 +02:00
Zeno Rogue
598603c937 geodesics in Sol 2019-09-12 22:50:09 +02:00
Zeno Rogue
946570da31 moved zpush from 3dmodels to hyperpoint 2019-09-12 22:50:09 +02:00
Zeno Rogue
e5e0dfbac1 correct gdpushing of UTF8 224-240 2019-09-12 22:50:08 +02:00
Zeno Rogue
5476b33e94 fixed to work on OPENGL 1.0 2019-09-12 22:50:08 +02:00
Zeno Rogue
0f98146d20 3D:: correct shift matrix in stereo mode 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
5519252fd0 added some missing CAP_* guards 2019-09-12 22:50:04 +02:00
Zeno Rogue
b52c093d58 dual:: fixed setfsize to affect both sizes 2019-09-12 22:50:04 +02:00
Zeno Rogue
1e07644c43 fixed cgi possibly generated incorrectly (especially in dual) 2019-09-12 22:50:04 +02:00
Zeno Rogue
8295251cdc multigame support, including dualmode 2019-09-12 22:50:03 +02:00
Zeno Rogue
7a4ee025d8 3D:: reload floor textures 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
6aeba2d906 fixed glDepthMask and thus shadows 2019-09-12 22:50:00 +02:00
Zeno Rogue
3e7b29a188 3D:: fixed how elliptic geometry works 2019-09-12 22:50:00 +02:00
Zeno Rogue
5c76509ded always clear depth, not depending on the current need 2019-09-12 22:50:00 +02:00
Zeno Rogue
df3e21b310 debug cleanup 2019-09-12 22:50:00 +02:00
Zeno Rogue
9a21401b9c item/monster icons in 3d 2019-09-12 22:49:56 +02:00
Zeno Rogue
9946ceb877 fixed circle drawing 2019-09-12 22:43:01 +02:00
Zeno Rogue
3b5733c935 enabled antialiasing in web 2019-09-12 22:43:01 +02:00
Zeno Rogue
c8e950cd40 added some missing CAP_ and MAXMDIM guards 2019-09-12 22:43:01 +02:00
Zeno Rogue
5d77c86658 scrdist_text removed 2019-09-12 22:43:00 +02:00
Zeno Rogue
5895540ae9 removed mdText as it was equivalent to mdUnchanged 2019-09-12 22:43:00 +02:00
Zeno Rogue
c19ffb3597 fixes to projection streamlining 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
b07a5a5c69 removed transparency from monsters in 3D 2019-09-12 22:42:59 +02:00
Zeno Rogue
f3e0ae4904 fixed using for C++11 2019-09-12 22:38:47 +02:00
Zeno Rogue
31427a6d24 3d:: fixed halfplane_scale in GL 2019-09-12 22:38:47 +02:00
Zeno Rogue
8ea5a618ad 3d:: clipping without OpenGL 2019-09-12 22:38:47 +02:00
Zeno Rogue
2121aacaaf 3d:: clipping configurable 2019-09-12 22:38:47 +02:00
Zeno Rogue
f399a8c980 3d:: shader acceleration in the band model 2019-09-12 22:38:47 +02:00
Zeno Rogue
ad4ecbde0e 3d:: fog in non-native models 2019-09-12 22:38:47 +02:00
Zeno Rogue
b62155b551 removed unused variable dim3 2019-09-12 22:38:47 +02:00
Zeno Rogue
bc3e7f2e95 3d:: shader acceleration for 3D ball and 3D halfspace 2019-09-12 22:38:47 +02:00
Zeno Rogue
46ae64e945 3d:: native perspective is now pmodel == mdPerspective, and other models work too 2019-09-12 22:38:47 +02:00
Zeno Rogue
608692b6df delete textures, saner resetGL calling rule? 2019-09-12 22:38:46 +02:00
Zeno Rogue
d9b90d8a8e 3D:: two-player uses split screen 2019-09-12 22:38:45 +02:00
Zeno Rogue
9f9670fcdb an option to desaturate colors for anaglyph 2019-09-12 22:38:45 +02:00
?
2ca3cf3744 3D:: affected by the FOV parameter 2019-09-12 22:38:42 +02:00
?
fb71d4fd15 3D:: sightranges are now configurable 2019-09-12 22:38:40 +02:00
?
e7110b7492 3d:: fixed letters 2019-09-12 22:38:40 +02:00
?
259e376909 3d:: four-phase drawing of sphere 2019-09-12 22:38:40 +02:00
?
1fcf58e17a 3D:: shader variants for R3 and S3 2019-09-12 22:38:40 +02:00
?
0ea37718f0 shaderside projection for DIM==3 2019-09-12 22:38:39 +02:00
?
56d628d4d8 adjusting for 3D part II 2019-09-12 22:38:39 +02:00
?
e73d2f2f22 some work on 3D view 2019-09-12 22:38:39 +02:00
?
99aa7e420b CAP_POLY part 1 2019-09-12 22:38:39 +02:00
Zeno Rogue
952f1c44fe minor fixes to color handling 2019-02-06 18:54:29 +01:00
Zeno Rogue
a1225228d8 fixed halfplane model orientation shaderside 2018-11-22 22:10:27 +01:00
Zeno Rogue
0ed74b12c4 fixed the rendering of Hypersian Rug 2018-11-20 19:01:10 +01:00
Zeno Rogue
e25bc8e455 glhr:: shaderside projection for the half-plane model 2018-11-19 20:53:35 +01:00
Zeno Rogue
50a86d1e88 glhr:: shader-side band now ignores depth 2018-11-18 18:26:56 +01:00
Zeno Rogue
eec70d7265 fixed subscreen computations 2018-11-18 18:26:56 +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
d1d2a300c4 refactored the degree constant 2018-11-11 11:25:59 +01:00
Zeno Rogue
5978830e01 filled model drawing (for some models) 2018-11-11 11:25:59 +01:00
Zeno Rogue
804b489ebf improved hemisphere model; nicer handling of ballangle 2018-10-28 03:09:06 +01:00
Zeno Rogue
cbb53cfe68 Joukowsky transform, and better inverted Poincare 2018-10-28 03:09:06 +01:00
Zeno Rogue
8a37a43547 improved hyperboloid model 2018-10-23 20:08:57 +02:00
Zeno Rogue
099349cafd with CAP_FONT text works better on white background 2018-09-05 15:41:40 +02:00
Zeno Rogue
f9d0a90ac9 some fixes 2018-09-04 23:50:50 +02:00
Zeno Rogue
78fc8e04b0 faster text with MINIMIZE_GL_CALLS 2018-09-04 23:27:51 +02:00
Zeno Rogue
35353fe70e faster graphics with MINIMIZE_GL_CALLS 2018-09-04 23:27:27 +02:00
Zeno Rogue
1ab460ffb1 type color_t should now be consistently used for colors; reimplemented drawqueue in OO fashion 2018-09-04 19:53:42 +02:00
Zeno Rogue
6b43a7972f CUSTOM_CAPTION can be configured (used in pentagonal exploration) 2018-09-03 16:33:01 +02:00
Zeno Rogue
e14b83d400 removed the debug text in syntetic 2018-08-18 17:53:06 +02:00
Zeno Rogue
5e2a65a781 vertical stretch parameter is now available in all models; more details in equi-area 2018-08-01 04:01:16 +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
Zeno Rogue
30cb9158cb moved svg and PNG screenshot to a new file screenshots.cpp; moved some commandline arguments from commandline.cpp to their respective modules 2018-07-19 23:46:58 +02:00
Zeno Rogue
508c63d731 calls to rogueviz::mark and rogueviz::fixparam from HR main are now replaced by hooks 2018-07-09 18:59:12 +02:00
Zeno Rogue
770dd20613 shift+f2 to shift+f4 can now disable HUD, FPS, and the map 2018-07-09 18:10:28 +02:00
Arthur O'Dwyer
62db7ee250 Eliminate VLAs for the benefit of MSVC. 2018-06-29 14:13:59 -07:00
Zeno Rogue
63869c6d33 renamed the size function to isize 2018-06-22 14:47:24 +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
98246d3066 more cleanup in parameters, restartGame cleanup 2018-06-11 00:58:38 +02:00
Zeno Rogue
1ec6e53cbc HQ shot no longer disable cheat 2018-04-21 12:01:53 +02:00
Zeno Rogue
848a135135 cleaner sightrange 2018-04-11 13:16:40 +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
36775cb45c HQ shot no longer increases the sight range (do this yourself) 2018-03-25 18:33:02 +02:00
Zeno Rogue
14c67bef0b cleanup of conformal/history menu 2018-03-25 14:04:40 +02:00
Zeno Rogue
d3c9bfdd92 improved the quality of 3D models from conformal menu 2018-03-24 15:15:30 +01:00
Zeno Rogue
74cc23f1c2 hemisphere model 2018-03-24 13:26:16 +01:00
Zeno Rogue
f9aa220931 realradius() in Euclidean now acknowledges vid.alpha and sightrange 2018-03-02 13:02:10 +01:00
Zeno Rogue
166ad63180 fixed the HQ screenshot feature 2018-02-20 22:10:53 +01:00
Zeno Rogue
59eb2bfd75 SDL_GL_SWAP_CONTROL only on desktop 2018-02-20 21:10:26 +01:00
Zeno Rogue
3b19ae2bbd a commandline option to disable vsync 2018-02-20 11:41:55 +01:00
Zeno Rogue
0412ea7b7c glhr::id is now a constant; streamlined applymatrix 2018-02-20 11:30:39 +01:00
Zeno Rogue
7ac883c1c2 compile without CAP_INV 2018-02-11 21:39:08 +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
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
64adb6f0ea updated the header comments to 2018, also added the missing ones 2018-02-09 00:40:26 +01:00
Zeno Rogue
4966bde3d4 started work on shaders.cpp 2018-02-09 00:29:20 +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
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
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
8a97571cb4 renamed ZZ to qpixel_pixel_outside 2017-12-22 21:24:08 +01:00
Zeno Rogue
20ef4b1c9f let's keep pngres = 2000 2017-12-19 00:38:24 +01:00
Zeno Rogue
386031ec13 changed default pngres to 2048, so that it makes good textures 2017-12-18 23:39:50 +01:00
Zeno Rogue
6635810f35 some extra commandline options 2017-12-14 02:50:28 +01:00
Zeno Rogue
c3da6e5cc2 fadeout works again 2017-12-02 00:19:34 +01:00
Zeno Rogue
19f12e3068 HUD elements, including the compass, now drawn correctly in all pmodels 2017-11-13 11:08:06 +01:00
Zeno Rogue
800a37f646 realradius 2017-11-07 13:40:56 +01:00
Zeno Rogue
64a3191946 added hooks to saveHQShot 2017-11-01 00:54:13 +01:00
Zeno Rogue
f841264676 reduced highqual's sightrange for the new geometries 2017-10-31 01:08:46 +01:00
Zeno Rogue
9f48dcf3f6 added an option to disable background particles and to change font size on desktop 2017-10-17 21:26:21 +02:00
Zeno Rogue
32edc68a6d added Halloween to start menu and fixed it in quit menu; message log 2017-10-09 10:51:16 +02:00
Zeno Rogue
7384f5ca34 new message styles 2017-10-08 14:49:49 +02:00
Zeno Rogue
73841570ea disable multisampling in case of problems 2017-09-04 20:42:56 +02:00
Zeno Rogue
496060d0b4 limited messages displayed to 5 2017-08-13 21:21:57 +02:00
Zeno Rogue
7c82c3e5a3 fixes to make the Emscripten web version compile correctly 2017-08-13 20:49:38 +02:00
Zeno Rogue
130fefa4c4 10.0g 2017-08-06 14:50:16 +02:00
Zeno Rogue
cc03560389 10.0d 2017-07-25 00:21:36 +02:00
Zeno Rogue
8cb8e2a3ec updated to 10.0c 2017-07-23 01:33:27 +02:00
Zeno Rogue
ce5650a81f 10.0 2017-07-16 23:00:55 +02:00
Zeno Rogue
94efef5d65 further work for 10.0 2017-07-12 18:03:53 +02:00
Zeno Rogue
069f7b0caf Major refactoring, multisampling 2017-07-10 20:47:38 +02:00