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

19 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
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