Riyyi
aedb1a5fc9
Everywhere: Add copyright headers
2 years ago
Riyyi
b72da1278d
Engine: Run clang-format
2 years ago
Riyyi
722bdd82b1
Engine: Change include guards to #pragma once
2 years ago
Riyyi
6b0095dadf
CMake: Move source directory to project root
2 years ago
Riyyi
0b57ee3a9f
Remove const ref std::shared_ptr
...
Taking a const std::shared_ptr& doesnt make sense, as it doesnt increase the
reference count and the object inside the pointer is still modifiable.
Return std::shared_ptr by value, returning by reference wont increase the
reference count and RVO (return value optimization) makes the const concern
moot.
3 years ago
Riyyi
7042a42032
Settings: use json util, update window size to uint32_t
3 years ago
Riyyi
a1372b971e
Implement signal handling: SIGINT, SIGTERM
3 years ago
Riyyi
3ce136741d
Improve API regarding server-side GL capabilities, fix font transparency
3 years ago
Riyyi
74ab4f0b70
Take callback as a const ref
3 years ago
Riyyi
29620c141e
Convert copy-list-initialization to direct-list-initialization
...
Good place to see the different types of initialization:
https://en.cppreference.com/w/cpp/language/explicit
3 years ago
Riyyi
cedce5e104
Convert Window properties strings to std::string, remove Settings initialized
3 years ago
Riyyi
f56cfb9084
Fix small memory leak, thanks valgrind
3 years ago
Riyyi
f01405c0a7
Convert aspect ratio to float
3 years ago
Riyyi
1a9a618ab1
Add mouse window lock
3 years ago
Riyyi
349257eba0
Abstract GLFW away from main loop close
3 years ago
Rick van Vonderen
e2c217d741
Add setViewport()
4 years ago
Rick van Vonderen
859401ec24
Move fullscreen to separate function, vsync to Context
4 years ago
Rick van Vonderen
18f4a028c1
Implement fullscreen/vsync into Window and Settings
4 years ago
Rick van Vonderen
2275a6be3e
Add graphics context
4 years ago
Rick van Vonderen
5f53a3037a
Add and implement mouse Events
4 years ago
Rick van Vonderen
9c2ceea7e2
Implement Settings in Window
4 years ago
Rick van Vonderen
f5cdd27508
Code cleanup
4 years ago
Rick van Vonderen
07f66c09df
Add application events, window class
4 years ago