VisuTwin Canvas
C++ 3D Engine — Metal Backend
Loading...
Searching...
No Matches
elementComponent.cpp
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2// Copyright 2025-2026 Arnis Lektauers
3#include "elementComponent.h"
4
5#include <algorithm>
6
7namespace visutwin::canvas
8{
11 {
12 _instances.push_back(this);
13 }
14
16 {
17 std::erase(_instances, this);
18 }
19}
Entity * entity() const
Definition component.cpp:16
Component(IComponentSystem *system, Entity *entity)
Definition component.cpp:12
IComponentSystem * system() const
Definition component.h:47
ElementComponent(IComponentSystem *system, Entity *entity)
ECS entity — a GraphNode that hosts components defining its behavior.
Definition entity.h:32