mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-26 00:47:00 +00:00
CAP_RAY
This commit is contained in:
parent
c131ed52ad
commit
64c63b7899
@ -1696,10 +1696,12 @@ EX void show3D() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if CAP_RAY
|
||||||
if(GDIM == 3) {
|
if(GDIM == 3) {
|
||||||
dialog::addItem(XLAT("configure raycasting"), 'A');
|
dialog::addItem(XLAT("configure raycasting"), 'A');
|
||||||
dialog::add_action_push(ray::configure);
|
dialog::add_action_push(ray::configure);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
edit_levellines('L');
|
edit_levellines('L');
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ namespace hr {
|
|||||||
|
|
||||||
EX namespace ray {
|
EX namespace ray {
|
||||||
|
|
||||||
#if MAXMDIM >= 4
|
#if CAP_RAY
|
||||||
|
|
||||||
/** texture IDs */
|
/** texture IDs */
|
||||||
GLuint txConnections = 0, txWallcolor = 0, txTextureMap = 0;
|
GLuint txConnections = 0, txWallcolor = 0, txTextureMap = 0;
|
||||||
@ -1234,7 +1234,7 @@ auto hookc = addHook(hooks_configfile, 100, addconfig);
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if MAXMDIM == 3
|
#if !CAP_RAY
|
||||||
EX always_false in_use;
|
EX always_false in_use;
|
||||||
EX always_false comparison_mode;
|
EX always_false comparison_mode;
|
||||||
EX void reset_raycaster() { }
|
EX void reset_raycaster() { }
|
||||||
|
@ -538,6 +538,10 @@ union SDL_Event;
|
|||||||
#define CAP_FIELD (!(ISMINI))
|
#define CAP_FIELD (!(ISMINI))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef CAP_RAY
|
||||||
|
#define CAP_RAY (MAXMDIM >= 4 && !ISWEB && !ISMOBILE)
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef CAP_MEMORY_RESERVE
|
#ifndef CAP_MEMORY_RESERVE
|
||||||
#define CAP_MEMORY_RESERVE (!ISMOBILE && !ISWEB)
|
#define CAP_MEMORY_RESERVE (!ISMOBILE && !ISWEB)
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user