From e1227bcb6e56c748e01942f75e8f420176a82cf7 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 21 Apr 2019 01:09:38 +0200 Subject: [PATCH] an option for hpcshapes to contain texture information --- hyper.h | 2 ++ polygons.cpp | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/hyper.h b/hyper.h index 82974db6..6979df98 100644 --- a/hyper.h +++ b/hyper.h @@ -3998,6 +3998,8 @@ struct hpcshape { PPR prio; int flags; hyperpoint intester; + basic_textureinfo *tinf; + int texture_offset; }; extern hpcshape shFullCross[2]; diff --git a/polygons.cpp b/polygons.cpp index e1cfc567..e11e8c48 100644 --- a/polygons.cpp +++ b/polygons.cpp @@ -3190,7 +3190,8 @@ dqi_poly& queuepolyat(const transmatrix& V, const hpcshape& h, color_t col, PPR ptd.outline = poly_outline; ptd.linewidth = vid.linewidth; ptd.flags = h.flags; - ptd.tinf = NULL; + ptd.tinf = h.tinf; + ptd.offset_texture = h.texture_offset; ptd.intester = h.intester; return ptd; }