mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-06-16 10:19:58 +00:00
an option for hpcshapes to contain texture information
This commit is contained in:
parent
10a82c544b
commit
e1227bcb6e
2
hyper.h
2
hyper.h
|
@ -3998,6 +3998,8 @@ struct hpcshape {
|
||||||
PPR prio;
|
PPR prio;
|
||||||
int flags;
|
int flags;
|
||||||
hyperpoint intester;
|
hyperpoint intester;
|
||||||
|
basic_textureinfo *tinf;
|
||||||
|
int texture_offset;
|
||||||
};
|
};
|
||||||
|
|
||||||
extern hpcshape shFullCross[2];
|
extern hpcshape shFullCross[2];
|
||||||
|
|
|
@ -3190,7 +3190,8 @@ dqi_poly& queuepolyat(const transmatrix& V, const hpcshape& h, color_t col, PPR
|
||||||
ptd.outline = poly_outline;
|
ptd.outline = poly_outline;
|
||||||
ptd.linewidth = vid.linewidth;
|
ptd.linewidth = vid.linewidth;
|
||||||
ptd.flags = h.flags;
|
ptd.flags = h.flags;
|
||||||
ptd.tinf = NULL;
|
ptd.tinf = h.tinf;
|
||||||
|
ptd.offset_texture = h.texture_offset;
|
||||||
ptd.intester = h.intester;
|
ptd.intester = h.intester;
|
||||||
return ptd;
|
return ptd;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user