1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00
Commit Graph

165 Commits

Author SHA1 Message Date
?
d95a6ae0d7 new hypot functions in textures 2019-09-12 22:38:42 +02:00
Zeno Rogue
9ccf82d9dc texture:: 'paint textures' in main menu now starts Canvas automatically 2019-02-06 18:48:52 +01:00
Zeno Rogue
c73b598d93 screenshots are more configurable now 2018-12-14 19:30:17 +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
549d86b15d arg:: shift_arg_formula used instead of argf 2018-11-11 11:27:36 +01: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
638032c47c fix fixed 2018-09-02 15:55:37 +02:00
Zeno Rogue
b80583cf08 hyperweb: loadTextureGL() now works correctly 2018-09-02 15:11:24 +02:00
Zeno Rogue
a7f1e560c5 subcodes can be (de)selected in the pattern selection 2018-08-30 19:14:04 +02:00
Zeno Rogue
2c1b8c3b14 texture remapping to dual/bitruncated Archimedean 2018-08-30 17:54:04 +02:00
Zeno Rogue
6de0f0a8aa instead of nonbitrunc, gp::on and irr::on, there is one variable, variation 2018-08-28 17:17:34 +02:00
Zeno Rogue
1af2c04407 enum class used for PPR 2018-08-28 14:27:23 +02:00
Zeno Rogue
c17efce3b5 PAT_TYPES now separate from PAT_NONE; PAT_* constants now use enum 2018-08-28 04:05:32 +02:00
Zeno Rogue
baffb16e83 fix XLAT(canvas) to XLATN 2018-08-27 19:38:02 +02:00
Zeno Rogue
ff84f63abd Fixed mapediting floorshapes. Also works nicely for all geometries now. Enum used for shapegroups. 2018-08-27 19:27:35 +02:00
Zeno Rogue
be6748cbb3 Archimedean tilings are now saved correctly in map editor and texture mode 2018-08-22 00:02:08 +02:00
Zeno Rogue
a4ced4a504 color by sides; canvas coloring selectable from the texture menu 2018-08-20 15:49:17 +02:00
Zeno Rogue
cd91148459 arcm:: all patterns work 2018-08-20 15:24:44 +02:00
Zeno Rogue
625144195c major cleanup of texture remapping 2018-08-20 02:04:49 +02:00
Zeno Rogue
e1c49a83fa fixed displayspin in syntetic 2018-08-19 16:28:36 +02:00
Zeno Rogue
5384ce3274 synt:: patterns 2018-08-19 15:15:47 +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
09fb882b71 replaced shFullCross with an alternative which works in any geometry 2018-08-17 16:48:26 +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
eb57d160d0 binary_tiling_width parameter 2018-08-14 10:18:18 +02:00
Zeno Rogue
12ce3a6a9b binary:: texture:: fixed some minor things 2018-08-14 09:16:09 +02:00
Zeno Rogue
dac4f6fc75 texture:: vid.stretch parameter applied correctly 2018-08-14 09:15:17 +02:00
Zeno Rogue
4f3cc3783a binary tiling 2018-08-09 19:28:53 +02:00
Zeno Rogue
d6c1f58adb texture:: textures were scrolled incorrectly after loading -> fixed 2018-08-04 11:15:48 +02:00
Zeno Rogue
958c5e5a4b no HUD when texture saving 2018-08-03 10:48:40 +02:00
Zeno Rogue
50d4378af4 texture configs based on polygonal tilings now load correctly 2018-08-03 10:47:47 +02:00
Zeno Rogue
7c16a9a32a texture aura option 2018-08-03 10:47:20 +02:00
Zeno Rogue
7e1344a863 singletype patterns now can be remapped to irregular grids 2018-08-02 22:26:07 +02:00
Zeno Rogue
bd59b4e23a fixed singletype texture patterns 2018-08-02 22:25:08 +02:00
Zeno Rogue
4ae3733659 fix a potential crash bug 2018-07-27 22:14:46 +02:00
Zeno Rogue
63869c6d33 renamed the size function to isize 2018-06-22 14:47:24 +02:00
Zeno Rogue
f699f73f1a texture:: undo clears pixels_to_draw; the number of pixels_to_draw displayed in the editor 2018-06-17 12:06:01 +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
56baba800b moved more includes to sysconfig.h 2018-06-12 23:10:20 +02:00
Zeno Rogue
a40d64a8f6 namespaces conform to an older standard 2018-06-11 18:00:40 +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
d3662a935d fix compiler warnings: catch(out_of_range&) 2018-06-07 13:58:00 +02:00
Zeno Rogue
530c689c98 RogueViz fixes 2018-05-18 17:34:12 +02:00
Zeno Rogue
6a7a150028 CAP_TEXTURE without CAP_EDIT, CAP_CONFIG and CAP_PNG (still seems not correct, though) 2018-05-15 23:29:09 +02:00
Zeno Rogue
666ddb007e MAJOR REWRITE of floor patterns 2018-05-07 20:13:56 +02:00
Zeno Rogue
c721851db1 general non-special-floor cleanup; standard and full floors are now perfect in gp 2018-05-04 02:46:44 +02:00
Zeno Rogue
09adfbdc45 texture:: fixed some problems with saving 2018-05-03 12:43:05 +02:00
Zeno Rogue
920a3a91fd fixed the 'cancel texture' option 2018-05-03 12:15:58 +02:00
Zeno Rogue
43a22ca135 texture:: fixed some situations where texture where not remapped after changing parameters 2018-05-03 12:15:48 +02:00
Zeno Rogue
02ae1b442a spherical textures in cylindrical projections are now read in a better way 2018-04-18 20:57:25 +02:00
Zeno Rogue
033c626dfc restartGame, wrong mode, and resetModes now use constants instead of magic char names 2018-04-09 18:05:23 +02:00
Zeno Rogue
830785990c renamed whirl to goldberg 2018-04-09 17:40:12 +02:00
Zeno Rogue
1da55d2175 whirl:: textures:: fixed inner spherical models 2018-04-06 12:47:35 +02:00
Zeno Rogue
e26f3f77b1 'cancel texture' actually cancels now 2018-04-06 12:20:52 +02:00
Zeno Rogue
587619ad42 whirl:: texture:: remapping (currently by commandline only) 2018-04-06 00:40:53 +02:00
Zeno Rogue
a3479ae830 texture:: commandline remapping option -txremap 2018-04-06 00:39:02 +02:00
Zeno Rogue
925a3af3ad texture:: correct cell-matrices after remapping -- helps when going back to overlay 2018-04-06 00:38:37 +02:00
Zeno Rogue
26e2927ed2 texture:: fixed the slavecolor hotkey clash 2018-04-06 00:34:33 +02:00
Zeno Rogue
951e00531b fixed texture remapping (was buggy -- texture_map_orig did not know tvertices 2018-04-06 00:34:09 +02:00
Zeno Rogue
d3c9bfdd92 improved the quality of 3D models from conformal menu 2018-03-24 15:15:30 +01:00
Zeno Rogue
2c09c5ee56 structurized textures.cpp 2018-03-17 21:12:46 +01:00
Zeno Rogue
09b6bdf148 fixed the hotkey clash in texture adjustment menu 2018-02-26 13:20:03 +01:00
Zeno Rogue
882c837f00 fixed case fallthroughs in texture adjustment 2018-02-26 13:19:50 +01:00
Zeno Rogue
920e295c3c fixed texture load-on-save 2018-02-20 22:12:54 +01:00
Zeno Rogue
c8d655184b when loading textures in the texture mode, you can now tune individual triangles 2018-02-13 23:25:44 +01:00
Zeno Rogue
f0bb13e17c magic texture adjustment: fixed the algorithm 2018-02-12 13:38:03 +01:00
Zeno Rogue
1b3de574a9 magic texture adjustment: fixed the names of parameters; added texture position X/Y 2018-02-12 13:37:38 +01:00
Zeno Rogue
cab8a0a38f Works online now! 2018-02-11 19:08:17 +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
b3f047ea6a reworked 3D vision 2018-02-03 13:41:49 +01:00
Zeno Rogue
33ebed2cf3 changed the way of marking the master triangles 2018-02-01 14:31:17 +01:00
Zeno Rogue
8ce3e6f703 refactored texture mapping -- can change the texture precision when already active now 2018-02-01 13:45:08 +01:00
Zeno Rogue
5bf6d54c7d changed chamfered to bitruncated 2018-01-06 22:34:03 +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
495dbba809 renamed 'truncated' to 'chamfered' 2018-01-04 18:39:04 +01:00
Zeno Rogue
3412a50b3d line/circle tools added to the texture editor; grid color changing in texture editor 2018-01-04 12:25:02 +01:00
Zeno Rogue
e0d4932c7a polished texture loading a bit; fixed PNG colors; added some help 2018-01-03 01:58:44 +01:00
Zeno Rogue
6745867dd2 saving viewcenter in texture config 2018-01-03 01:21:38 +01:00
Zeno Rogue
46f8ce200b enhancement to magic adjustment 2018-01-03 01:05:03 +01:00
Zeno Rogue
44b26d7de0 more responsible texture drawing 2017-12-30 17:01:53 +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
ae70662495 moving the screen center 2017-12-25 10:26:50 +01:00
Zeno Rogue
3604fa9a73 add model, yshift and camera to texture saveconfig 2017-12-22 22:52:13 +01:00
Zeno Rogue
dd108cde6b symmetric texture editing 2017-12-22 21:57:55 +01:00
Zeno Rogue
8a97571cb4 renamed ZZ to qpixel_pixel_outside 2017-12-22 21:24:08 +01:00
Zeno Rogue
4bee0c85a7 undo in texture editor 2017-12-22 20:59:04 +01:00
Zeno Rogue
94487a9ae4 default coloralpha 128; changed some texts; fixed changing slave color 2017-12-22 01:24:53 +01:00
Zeno Rogue
4287355c11 fixed the rendering of textured spheres 2017-12-21 14:59:16 +01:00
Zeno Rogue
f7b5a1b44f save full texture images 2017-12-21 14:05:07 +01:00
Zeno Rogue
977d35bc8d added texture/ to default dirs in textures.cpp 2017-12-21 13:04:35 +01:00
Zeno Rogue
789fbdb8b9 Saving raw textures 2017-12-21 12:58:36 +01:00
Zeno Rogue
16ea486992 renamed text 2017-12-21 12:02:15 +01:00
Zeno Rogue
62f927b69a removed debug from texture remapping 2017-12-21 12:01:47 +01:00
Zeno Rogue
91adb393b3 reads images using libpng now (SDL_image available as optional compilation flag) 2017-12-21 12:00:34 +01:00
Zeno Rogue
57a5337b9f CAP_TEXTURE can be off; right-size textures loaded without scaling; SPF_FULLSYM 2017-12-21 11:36:07 +01:00