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

45 Commits

Author SHA1 Message Date
Arthur O'Dwyer
ced3bbcad4 Qualify calls to format
C++20 introduces `std::format` and we `using namespace std`,
so some of these would be ambiguous in C++20.
2023-08-21 10:18:44 -07:00
Zeno Rogue
a9d76c861c vnear_default and vfar_default are now changeable 2023-05-15 02:50:41 +02:00
Zeno Rogue
9f85af3068 prevent current_linewidth from causing extra GL calls 2023-04-15 01:29:59 +02:00
Zeno Rogue
70842eb6e9 fixup to minimize improve 2023-04-15 01:15:35 +02:00
Zeno Rogue
e898c61921 improved glhr debugging 2023-03-16 14:46:05 +01:00
Zeno Rogue
91b6628922 fixed SDL2 (with GLEW) on Windows 2022-06-10 18:45:15 +02:00
Zeno Rogue
c5e8d8aab3 sky for INFORDER 2021-06-17 09:44:48 +02:00
Zeno Rogue
0c048ea53b glhr:: more informative messages on shader compile failure with -dgl 2021-06-03 13:26:10 +02:00
Zeno Rogue
38eb8c5122 disk model in Euclidean and hyperbolic 2020-12-31 19:11:13 +01:00
Zeno Rogue
9ef2f96413 glhr fixup 2020-12-24 22:19:26 +01:00
Zeno Rogue
47c54e8660 textured_vertex now has the Z coordinate so that the rug works correctly in web 2020-12-23 23:41:22 +01:00
Zeno Rogue
828753cede detailed shader debug 2020-11-22 17:57:03 +01:00
Zeno Rogue
4373c03823 GLWRAP for debugging GL errors 2020-11-08 11:48:36 +01:00
Zeno Rogue
b3db152ee6 fixed a crash without OpenGL 2020-11-07 19:26:11 +01:00
Zeno Rogue
6513b3a87e Panini projection 2020-11-01 21:20:54 +01:00
Zeno Rogue
ade824e97c ray:: partially works in web 2020-10-15 16:37:43 +02:00
Zeno Rogue
e3ed7a3bb3 yet another fix 2020-09-13 15:38:41 +02:00
Zeno Rogue
8daae8a1ed fixed a bug with SHDIM==3 2020-09-13 14:22:13 +02:00
Zeno Rogue
18ab187547 rotational model of Nil, and change Nil rotation 2020-09-11 11:13:18 +02:00
Zeno Rogue
6d8cc0eadc support to draw colored textures 2020-09-11 11:08:27 +02:00
Zeno Rogue
f59fd7b0c9 fixed a crash caused by glhr::init on some video cards 2020-08-10 18:06:11 +02:00
Zeno Rogue
79a02a0c2e no more empty lines on GL errors 2020-08-01 16:43:05 +02:00
Zeno Rogue
7c3c34c3d8 sky-based fog in 2.5D 2020-08-01 13:59:53 +02:00
Zeno Rogue
82f32607e6 MAJOR CHANGE: replaced (transmatrix,band_shift) pair with shiftmatrix 2020-07-28 22:06:14 +02:00
Zeno Rogue
7e85f07458 primitive rendering now implemented for stretched H2xE; removed the old implementation of SL(2,R) 2020-07-22 00:19:13 +02:00
Zeno Rogue
89585f004b fixed some guards (in progress) 2020-07-03 14:42:33 +02:00
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
306d8c3ace added function to_glsl to convert ld to GLSL strings 2020-05-09 18:30:36 +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
Arthur O'Dwyer
561a3ebade Silence a pedantic GCC warning by adding reinterpret_cast<void*>.
Here we're casting a function pointer to `void*`, which is not doable
with our implicit-conversions-only `hr::voidp(x)` helper, and is
not even doable with a `static_cast`; we must `reinterpret_cast`.
2020-03-23 14:39:30 -04:00
Zeno Rogue
124ee9a467 fixed no-GL crash again 2020-03-07 04:47:11 +01:00
Zeno Rogue
5cbe61a823 fixed a crash when displaying inventory with OpenGL off 2020-02-07 18:34:47 +01:00
Zeno Rogue
d47c09de12 glhr:: export current_linewidth for minimizing 2019-11-09 11:20:43 +01:00
Zeno Rogue
a9c08d76fb fixed CAP_VERTEXBUFFER 2019-11-03 14:19:37 +01:00
Zeno Rogue
3725b06d0b levellines feature 2019-11-03 13:36:06 +01:00
Zeno Rogue
f3035bb1f5 3D version of tmtogl_transpose 2019-10-28 17:19:30 +01:00
Zeno Rogue
33f17e345a option -dgl to debug shaders 2019-10-28 17:18:59 +01:00
Zeno Rogue
d24971fef0 GLERR now uses hlog 2019-10-26 17:02:54 +02:00
Zeno Rogue
3477371ffd const version of glmatrix::as_stdarray 2019-10-26 14:34:44 +02:00
Zeno Rogue
3c4fe13fac ray:: set depth to match primitive-based shader 2019-10-26 14:11:44 +02:00
Zeno Rogue
315e93a76a junk comments removed 2019-10-22 00:37:37 +02:00
Zeno Rogue
655af58ae1 use shared_ptr consistently 2019-10-22 00:36:44 +02:00
Zeno Rogue
d7a8cbe0be GLprogram junk 2019-10-22 00:35:34 +02:00
Zeno Rogue
30eda241a8 shader fixup 2019-10-21 22:40:56 +02:00
Zeno Rogue
09fcd14aa7 redesigned shader system 2019-10-21 22:34:20 +02:00