From c46bedd23b932a67edb674b8ab324d173cc6d7e8 Mon Sep 17 00:00:00 2001 From: ? Date: Thu, 28 Feb 2019 19:01:40 +0100 Subject: [PATCH] 3d::draw:: crosshair --- mapeditor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mapeditor.cpp b/mapeditor.cpp index e35f1fbe..0c29a2b0 100644 --- a/mapeditor.cpp +++ b/mapeditor.cpp @@ -1056,6 +1056,9 @@ namespace mapeditor { void drawGrid() { if(DIM == 3) { queuecircleat(mapeditor::drawcell, 1, 0x80D080FF); + color_t cols[4] = { 0x80D080FF, 0x80D080FF, 0xFFFFFF40, 0x00000040 }; + for(int i=0; i<4; i++) + queueline(cpush(2, front_edit) * cpush0(i&1, 0.1), cpush(2, front_edit) * cpush0(i&1, -0.1), cols[i], -1, i < 2 ? PPR::LINE : PPR::SUPERLINE); return; } unsigned lightgrid = gridcolor;