outlining
parent
fa80d425a5
commit
820c6209b7
|
@ -1,5 +1,5 @@
|
|||
cmake_minimum_required(VERSION 3.25)
|
||||
project(graphs VERSION 0.0.39)
|
||||
project(graphs VERSION 0.0.40)
|
||||
|
||||
option(ENABLE_ADDRSAN "Enable the address sanitizer" OFF)
|
||||
option(ENABLE_UBSAN "Enable the ub sanitizer" OFF)
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 2c29dba90fc8de8fe8cbacd035c50d13a4f5aa70
|
||||
Subproject commit af143549cbbafa26ad10b89777093d55e5d82bde
|
|
@ -238,11 +238,8 @@ class graph_t
|
|||
{
|
||||
auto n1 = nodes[edge.getFirst()];
|
||||
auto n2 = nodes[edge.getSecond()];
|
||||
auto draw_info = blt::gfx::render_info_t::make_info(edge.getColor());
|
||||
auto outline_info = blt::gfx::render_info_t::make_info(edge.getOutlineColor());
|
||||
blt::gfx::line2d_t line{n1.getRenderObj().pos, n2.getRenderObj().pos, edge.getThickness() * edge.getOutlineScale()};
|
||||
auto draw_info = blt::gfx::render_info_t::make_info(edge.getColor(), edge.getOutlineColor(), edge.getOutlineScale());
|
||||
renderer_2d.drawLine(draw_info, 5.0f, n1.getRenderObj().pos, n2.getRenderObj().pos, edge.getThickness());
|
||||
renderer_2d.drawLineInternal(outline_info, line, 2.0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue