mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-15 17:54:48 +00:00
hyperweb: fixed the rotmatrix parameter order, also disabled is CAP_ORIENTATION disabled
This commit is contained in:
parent
b72259cc8e
commit
a239a26843
@ -145,16 +145,18 @@ void initweb() {
|
|||||||
if(showstartmenu) pushScreen(showDemo);
|
if(showstartmenu) pushScreen(showDemo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if CAP_ORIENTATION
|
||||||
transmatrix getOrientation() {
|
transmatrix getOrientation() {
|
||||||
ld alpha, beta, gamma;
|
ld alpha, beta, gamma;
|
||||||
alpha = EM_ASM_DOUBLE({ return rotation_alpha; });
|
alpha = EM_ASM_DOUBLE({ return rotation_alpha; });
|
||||||
beta = EM_ASM_DOUBLE({ return rotation_beta; });
|
beta = EM_ASM_DOUBLE({ return rotation_beta; });
|
||||||
gamma = EM_ASM_DOUBLE({ return rotation_gamma; });
|
gamma = EM_ASM_DOUBLE({ return rotation_gamma; });
|
||||||
return
|
return
|
||||||
rotmatrix(0, 1, alpha * M_PI / 180) *
|
rotmatrix(alpha * M_PI / 180, 0, 1) *
|
||||||
rotmatrix(1, 2, beta * M_PI / 180) *
|
rotmatrix(beta * M_PI / 180, 1, 2) *
|
||||||
rotmatrix(0, 2, gamma * M_PI / 180);
|
rotmatrix(gamma * M_PI / 180, 0, 2);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void emscripten_get_commandline() {
|
void emscripten_get_commandline() {
|
||||||
#ifdef EMSCRIPTEN_FIXED_ARG
|
#ifdef EMSCRIPTEN_FIXED_ARG
|
||||||
|
Loading…
Reference in New Issue
Block a user