Aeon Engine c550894
AeonGames Open Source Game Engine
Loading...
Searching...
No Matches
Octree.hpp
1/*
2Copyright (C) 2019,2025,2026 Rodrigo Jose Hernandez Cordoba
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16#ifndef AEONGAMES_OCTREE_H
17#define AEONGAMES_OCTREE_H
19#include <cstdint>
20#include <vector>
21#include <tuple>
22namespace AeonGames
23{
24 class Node;
26 class Octree
27 {
28 public:
29 DLL Octree();
30 DLL ~Octree();
33 DLL void AddNode ( Node* aNode );
36 DLL void RemoveNode ( Node* aNode );
37 private:
38 size_t mSize{0};
39 std::vector<std::tuple<uint64_t, std::vector<Node* >>> mNodes{};
40 };
41}
42#endif
Platform-specific macros, includes, and DLL export/import definitions.
Scene graph node representing an entity in the game world.
Definition Node.hpp:54
DLL void AddNode(Node *aNode)
Insert a node into the octree.
Definition Octree.cpp:24
DLL void RemoveNode(Node *aNode)
Remove a node from the octree.
Definition Octree.cpp:27
<- This is here just for the literals
Definition AABB.hpp:31