VisuTwin Canvas
C++ 3D Engine — Metal Backend
Loading...
Searching...
No Matches
immediate.cpp
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2// Copyright 2025-2026 Arnis Lektauers
3//
4// Created by Arnis Lektauers on 11.10.2025.
5//
6#include "immediate.h"
7
8namespace visutwin::canvas
9{
10 Immediate::OverlayCommand* Immediate::addOverlayLine(const Vector3& start, const Vector3& end, const Color& color, const float thickness)
11 {
12 auto* command = _overlayPool.allocate();
13 command->start = start;
14 command->end = end;
15 command->color = color;
16 command->thickness = thickness;
17 _overlayCommands.push_back(command);
18 return command;
19 }
20
22 {
23 _overlayCommands.clear();
24 _overlayPool.freeAll();
25 }
26}
OverlayCommand * addOverlayLine(const Vector3 &start, const Vector3 &end, const Color &color, float thickness=1.0f)
Definition immediate.cpp:10
RGBA color with floating-point components in [0, 1].
Definition color.h:18
3D vector for positions, directions, and normals with multi-backend SIMD acceleration.
Definition vector3.h:29