Commit Graph

201 Commits

Author SHA1 Message Date
Zeno Rogue daeff80ff5
Merge pull request #108 from Quuxplusone/ifdef
Move all defaulting-of-`CAP_FOO` to sysconfig.h
2020-05-15 11:32:38 +02:00
Zeno Rogue fd9ea8793e stretch:: renamed rots_twist to stretch, also implemented for slr 2020-05-09 10:41:15 +02:00
Zeno Rogue 54804bc08b stretched spherical geometry 2020-05-08 21:18:47 +02:00
Arthur O'Dwyer f2b7746c1b Move all defaulting-of-`CAP_FOO` to sysconfig.h.
- The phrase `#ifdef CAP_` should never appear anywhere.

- The phrase `#ifndef CAP_` should appear only in sysconfig.h.

- The phrases `#if CAP_` and `#if !CAP_` may appear wherever,
    as long as "sysconfig.h" is included first.

The rules for `CAP_FOO` equally apply to `ISFOO`.

There are many one-off macros still tested with `#ifdef`,
including `HAVE_ACHIEVEMENTS`, `PRINT_ACHIEVEMENTS`,
`FAKEWEB`, `FAKE_SDL`, `EASY`, and `WHATEVER`. I don't
have much grasp on what these are used for or how they're
configured, so I'm leaving them alone.
2020-05-03 15:12:12 -04:00
Zeno Rogue 93f1090891 vertex debug 2020-04-21 23:37:25 +02:00
Zeno Rogue 2e160110b3 typo fix 2020-04-19 13:54:00 +02:00
Zeno Rogue 6f6586b3f2
Merge branch 'master' into hooks-naming 2020-04-19 13:39:07 +02:00
Zeno Rogue c0115e60e9 added some more debug lines to DF_GRAPH 2020-04-17 15:03:05 +02:00
Zeno Rogue 7a71132806 shaded rug 2020-04-17 15:01:55 +02:00
Zeno Rogue 0472bf764f moved all projection-related parameters to a special struct; another copy of that struct created for rug 2020-04-17 00:53:58 +02:00
Zeno Rogue 84cf5d6e3a added missing guards, mostly for CAP_WRL 2020-04-16 21:00:28 +02:00
Zeno Rogue db916f8c95 printable rug 2020-04-15 17:07:39 +02:00
Zeno Rogue 2fb865346d generate 'printable' models or not 2020-04-15 16:21:02 +02:00
Zeno Rogue f150245a72 basic WRL export (no menus) 2020-04-15 11:49:29 +02:00
Arthur O'Dwyer 0d42168139 Make hookset<T> a pointer type, just like purehookset.
No more declaring `hookset<T> *hooks_foo`; now it's just
`hookset<T> hooks_foo` at global scope. This clears the way to
make `hookset<T>` into a class type if we want.
2020-04-12 10:50:18 -04:00
Arthur O'Dwyer 934e3d9a42 Consistently name every hookset with prefix `hooks_`. NFC.
I'm sure this causes massive merge-conflicts in the non-public code,
but I think it'd be a good idea, if only to avoid confusion between
e.g. `clearMemory` and the-variable-formerly-known-as `clearmemory`.
2020-04-12 10:49:32 -04:00
Zeno Rogue e4a8b73819 nisot:: nicer precision setting 2020-04-11 15:08:24 +02:00
Zeno Rogue d790374e93 ... but disable outline on eyes 2020-04-06 11:29:28 +02:00
Zeno Rogue b1e3b0cbdf if outline is set and no texture, wireframes are drawn 2020-04-06 11:25:55 +02:00
Zeno Rogue 4e30c79c37 fixup to neon disabling textures 2020-04-06 11:24:57 +02:00
Zeno Rogue 805c153c9f neon_nofill option; added XLAT to vector options; neon now also disables textured triangles 2020-04-06 10:44:27 +02:00
Zeno Rogue c1ed54763b 3D geometries should now render without OpenGL 2020-04-06 10:43:28 +02:00
Zeno Rogue cfbd5f830c fixed some warnings and errors with ll to int assignment 2020-04-06 09:13:20 +02:00
Zeno Rogue 9a84dfb497 adjusted mobile to the new system 2020-04-06 09:13:20 +02:00
Zeno Rogue 0412f077e6 added/fixed some \brief descriptions 2020-03-27 21:47:09 +01:00
Zeno Rogue eadd1d90c0 added some comments in drawing.cpp 2020-03-27 21:32:43 +01:00
Zeno Rogue 4d4c904d3b neon_mode is now an enum 2020-03-27 19:38:15 +01:00
Zeno Rogue f4130ec730 fixed false positive warnings with _GLIBCXX_ASSERTIONS 2020-03-27 12:32:46 +01:00
Zeno Rogue cf968c8be1 optimized drawing side walls 2020-03-08 00:33:18 +01:00
Zeno Rogue 5d9fdd83a8 fixed ODS; non-isotropic ODS 2020-03-07 04:47:10 +01:00
Zeno Rogue 99e64d862d shallow water graphics and mechanics 2020-03-07 04:47:09 +01:00
Zeno Rogue 4b4c21cfa4 neonmodes work better with bordcolor changed 2020-02-07 18:33:58 +01:00
Zeno Rogue 8005b39f6f ASCII/3D mode, also reacts to neon settings 2020-01-30 17:45:05 +01:00
Zeno Rogue ca3232c3bb extended 'linewidth' setting: illustration mode, hint about Alt, disable shadows, bright mode, colorblind simulation 2020-01-18 17:11:57 +01:00
Zeno Rogue c247936e34 removed the functions queuechr -- use queuestr now 2019-12-26 23:38:28 +01:00
Zeno Rogue c4528bf954 bubbles react to neon 2019-12-26 23:32:27 +01:00
Zeno Rogue 2678ac4743 neon mode (see the 'line width' setting in graphics) 2019-12-07 11:13:09 +01:00
Zeno Rogue 928e369977 ray:: stereo modes 2019-11-16 03:04:01 +01:00
Zeno Rogue f1532591d4 fixed possible crash when drawing empty textures 2019-11-09 11:20:30 +01:00
Zeno Rogue 341934d1c5 s2xe:: removed old junk 2019-11-03 14:44:40 +01:00
Zeno Rogue 55c41463dd s2xe:: fixed unfilled shapes 2019-11-03 14:44:26 +01:00
Zeno Rogue 3725b06d0b levellines feature 2019-11-03 13:36:06 +01:00
Zeno Rogue c527d4e613 ODS in hyperbolic 2019-10-21 22:42:27 +02:00
Zeno Rogue 09fcd14aa7 redesigned shader system 2019-10-21 22:34:20 +02:00
Zeno Rogue cfc36c7bda fisheye and ball models in nonisotropic spaces 2019-10-05 12:34:14 +02:00
Zeno Rogue 5c1568d288 added CAP_VR 2019-09-26 13:23:10 +02:00
Zeno Rogue d1bf6fef5e replaced product::product_sphere() 2019-09-12 22:50:16 +02:00
Zeno Rogue 99cb3f5a61 s2xe:: improved, also works with textures 2019-09-12 22:50:16 +02:00
Zeno Rogue bc76bc472c prettylinesub no longer tries to be pretty if flat 2019-09-12 22:50:16 +02:00
Zeno Rogue e600c0af0a improved the rendering of S2xE rings 2019-09-12 22:50:16 +02:00
Zeno Rogue 848eb8f48b export everything: modules compiled separately 2019-09-12 22:50:16 +02:00
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 02269267c9 slr:: drawing of looped images, better shader in general, special sightrange setting 2019-09-12 22:50:15 +02:00
Zeno Rogue afa6d722dd no crash in draw_s2xe if empty shape to draw, also moved npoly to draw_s2xe 2019-09-12 22:50:14 +02:00
Zeno Rogue fe266d3485 compilation in C++11 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 3c5a5f455a product:: more fixes to s2xe view 2019-09-12 22:50:14 +02:00
Zeno Rogue cb6cd1bea9 product:: fixed gen count in draw_s2xe 2019-09-12 22:50:13 +02:00
Zeno Rogue 8e943486d9 product:: fixed randomly disappearing things 2019-09-12 22:50:13 +02:00
Zeno Rogue 43a3d0130e product:: shader-side H2xE 2019-09-12 22:50:13 +02:00
Zeno Rogue d79a6faa6f yet better S2xE renderer 2019-09-12 22:50:13 +02:00
Zeno Rogue e636d3f40c preliminary S2xE 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 96bf478482 renamed DIM to GDIM 2019-09-12 22:50:13 +02:00
Zeno Rogue 932c9bac6c models:: less hacky implementation of looping in pseudocylindrical projections 2019-09-12 22:50:13 +02:00
Zeno Rogue 876ece1ff6 renamed fixMercator to cyl::adjust, and its variables accordingly 2019-09-12 22:50:13 +02:00
Zeno Rogue df9c01f276 models:: Collignon projection 2019-09-12 22:50:13 +02:00
Zeno Rogue 2c073c1ec1 cleanup of mercator_fix 2019-09-12 22:50:13 +02:00
Zeno Rogue 9d573ebd07 models:: central cylindrical and in-progress Collignon 2019-09-12 22:50:13 +02:00
Zeno Rogue 9e79872780 mdPseudocylindrical flag 2019-09-12 22:50:13 +02:00
Zeno Rogue 10a8b8660b Mollweide projection 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 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 e77a6f3440 removed unused and incorrect function queuemarkerat 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 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 8ac64fc2a0 nilv:: Nil shader, and improved geodesics 2019-09-12 22:50:11 +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 44b9968ff8 cleaned up invis_point -> point_behind and invalid_point(transmatrix), also implemented for Solv 2019-09-12 22:50:11 +02:00
Zeno Rogue 1801fbd048 scale_at is 1 in sol 2019-09-12 22:50:10 +02:00
Zeno Rogue 598603c937 geodesics in Sol 2019-09-12 22:50:09 +02:00
Zeno Rogue 3a065a4356 POLY_DEBUG flag 2019-09-12 22:50:09 +02:00
Zeno Rogue feaeee86f0 fixed a bug with linewidth in mdUnchanged 2019-09-12 22:50:09 +02:00
Zeno Rogue f677bce4ad exporting queuecircle 2019-09-12 22:50:09 +02:00
Zeno Rogue 2ff2917184 quickqueue clears curvedata 2019-09-12 22:50:09 +02:00
Zeno Rogue 65244d11d5 glflush on queuereset 2019-09-12 22:50:09 +02:00
Zeno Rogue d67316454c linewidth bugs fixed when MINIMIZE_GL_CALLS 2019-09-12 22:50:09 +02:00
Zeno Rogue 75dd6bbc02 fixed a bug with resetting stereo modes in 3D 2019-09-12 22:50:08 +02:00
Zeno Rogue fc43a4716b new pmodel: Central Inversion (for Euclidean) 2019-09-12 22:50:08 +02:00
Zeno Rogue 8aea5eebb4 removed a special case in Android graphics which should not be a special case 2019-09-12 22:50:08 +02:00
Zeno Rogue f0d04f6bc2 removed incorrect CAP_TEXTURE guards 2019-09-12 22:50:08 +02:00
Zeno Rogue 2153f48119 correct depthtest/depthwrite/fogbase not only for triangles 2019-09-12 22:50:08 +02:00
Zeno Rogue 63154dbcbf fixed an OpenGL error caused by negative linewidth 2019-09-12 22:50:07 +02:00
Zeno Rogue 587652e540 2D3D:: Euclidean skies 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