mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
more exports, inlines exported
This commit is contained in:
parent
664ca63acc
commit
1d8c086169
@ -1240,7 +1240,7 @@ void drawPlayer(eMonster m, cell *where, const transmatrix& V, color_t col, doub
|
||||
}
|
||||
}
|
||||
|
||||
int wingphase(int period, int phase = 0) {
|
||||
int wingphase(int period, int phase) {
|
||||
ld t = fractick(period, phase);
|
||||
const int WINGS2 = WINGS * 2;
|
||||
int ti = int(t * WINGS2) % WINGS2;
|
||||
|
19
hyper.h
19
hyper.h
@ -5573,4 +5573,23 @@ static const color_t NOCOLOR = 0;
|
||||
extern int global_projection;
|
||||
void spinEdge(ld aspd);
|
||||
|
||||
inline hyperpoint cpush0(int c, ld x) {
|
||||
hyperpoint h = Hypc;
|
||||
h[GDIM] = cos_auto(x);
|
||||
h[c] = sin_auto(x);
|
||||
return h;
|
||||
}
|
||||
|
||||
inline hyperpoint xspinpush0(ld alpha, ld x) {
|
||||
hyperpoint h = Hypc;
|
||||
h[GDIM] = cos_auto(x);
|
||||
h[0] = sin_auto(x) * cos(alpha);
|
||||
h[1] = sin_auto(x) * -sin(alpha);
|
||||
return h;
|
||||
}
|
||||
|
||||
extern renderbuffer *floor_textures;
|
||||
|
||||
int wingphase(int period, int phase = 0);
|
||||
|
||||
}
|
@ -319,21 +319,6 @@ transmatrix cpush(int cid, ld alpha) {
|
||||
// push alpha units to the right
|
||||
transmatrix xpush(ld alpha) { return cpush(0, alpha); }
|
||||
|
||||
inline hyperpoint cpush0(int c, ld x) {
|
||||
hyperpoint h = Hypc;
|
||||
h[GDIM] = cos_auto(x);
|
||||
h[c] = sin_auto(x);
|
||||
return h;
|
||||
}
|
||||
|
||||
inline hyperpoint xspinpush0(ld alpha, ld x) {
|
||||
hyperpoint h = Hypc;
|
||||
h[GDIM] = cos_auto(x);
|
||||
h[0] = sin_auto(x) * cos(alpha);
|
||||
h[1] = sin_auto(x) * -sin(alpha);
|
||||
return h;
|
||||
}
|
||||
|
||||
bool eqmatrix(transmatrix A, transmatrix B, ld eps) {
|
||||
for(int i=0; i<MDIM; i++)
|
||||
for(int j=0; j<MDIM; j++)
|
||||
|
@ -27,10 +27,6 @@
|
||||
|
||||
#include "rogueviz.h"
|
||||
|
||||
#if MAXMDIM >= 4
|
||||
namespace hr { extern renderbuffer *floor_textures; }
|
||||
#endif
|
||||
|
||||
namespace rogueviz {
|
||||
|
||||
ld fat_edges = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user