NKAI: object graph improved and optimized

This commit is contained in:
Andrii Danylchenko committed 2024-03-21 12:13:36 +02:00
1 parent 3e959f3ad9
commit e66ceff154
9 files changed
+362 -47

No files matched your search

+5
View File
@@ -71,6 +71,8 @@ public:
virtual void drawLine(int3 start, int3 end) override
{
const Point offset = Point(30, 30);
auto level = model->getLevel();
if(start.z != level || end.z != level)
@@ -83,6 +85,9 @@ public:
pStart.x += 3;
pEnd.x -= 3;
pStart += offset;
pEnd += offset;
if(viewPort.isInside(pStart) && viewPort.isInside(pEnd))
{
target.drawLine(pStart, pEnd, ColorRGBA(255, 255, 0), ColorRGBA(255, 0, 0));