Compare commits

...

2 Commits

Author SHA1 Message Date
3c2db2dc2c Update README 2021-01-18 19:01:49 +01:00
6859c8b200 Hotfix for memory leak
The Vector class is still leaky, but it's not a noticeable problem with this fix. Proper fixing requries more debugging
2021-01-18 18:59:13 +01:00
2 changed files with 14 additions and 1 deletions

View File

@ -4,7 +4,18 @@
C++ ECS OpenGL game demo.
Building requires OpenGL 3.2+, GLFW, GLM and GLAD.
## Movement
- Moving and panning: WASD and mouse
- Switching between free-look and path-mode: P
- Adding a path point: R
- Changing speed in path-mode: W/S
- Toggle anti-aliasing: Q
## Building
Building requires OpenGL 3.2+, GLFW, GLM and GLAD. CMake is used for compiling.
## Credits
Some code adapted from Joey de Vries' (https://twitter.com/JoeyDeVriez) tutorials at https://learnopengl.com/About licensed under https://creativecommons.org/licenses/by-nc/4.0/.

View File

@ -129,6 +129,8 @@ class KDTree {
result = current_result;
}
}
delete[] current_result.c;
}
// Is the ray origin within the left or right child node bounding box?