Riyyi
50f363df65
Add git pre-commit hooks and install script
2021-06-15 23:39:12 +02:00
Riyyi
7401936016
Initialize raw pointers as nullptr
2021-05-18 02:45:00 +02:00
Riyyi
d1ba13794c
Release source under MIT license
2021-04-01 00:43:30 +02:00
Riyyi
ec2cb44c06
Set stride to 0 when calculating offsets
2021-03-11 16:55:05 +01:00
Riyyi
c8cea7bf45
Give native types initial value
2021-03-11 16:52:47 +01:00
Riyyi
f63bd4ab6d
Remove move where it didnt make sense
2021-03-11 16:17:04 +01:00
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.
2021-03-11 11:37:46 +01:00
Riyyi
50a438e340
Cleanup
2021-03-11 11:07:50 +01:00
Riyyi
0522f6f388
String can be printed directly
2021-03-08 23:12:58 +01:00
Riyyi
571403c9a2
Change "pretending to be for loop" while loop to for loop
2021-03-07 01:04:41 +01:00
Riyyi
25a5e0a8e8
Add .clang-format
2021-03-04 03:25:44 +01:00
Riyyi
49bf1b3933
ifstream destructor closes the file, due to RAII
2021-02-15 00:22:32 +01:00
Riyyi
16cebbb8cb
Prevent window duplicate destruction
2021-02-14 13:49:35 +01:00
Riyyi
3e1d0eef53
Forward declare components
2021-02-14 04:01:36 +01:00
Riyyi
8f7665b8a3
Implement singleton class in all singletons
2021-02-14 04:00:44 +01:00
Riyyi
deb9e34b8f
Second attempt at deriving application from a singleton
2021-02-14 02:36:45 +01:00
Riyyi
4467d0d40a
Add std::move to the resource managers
2021-02-14 00:21:33 +01:00
Riyyi
6103854503
Revert application and remove singleton class, it breaks object lifetime?
2021-02-14 00:06:30 +01:00
Riyyi
3583c2994b
Remove call to application getWindow before its finished construction
2021-02-13 16:42:15 +01:00
Riyyi
c1ae98c659
Implement singleton class into application
2021-02-13 16:14:23 +01:00
Riyyi
0cc22100e9
Add singleton class
2021-02-13 16:09:45 +01:00
Riyyi
e834203b07
Move settings save after initialize log
2021-02-11 20:50:04 +01:00
Riyyi
b26cb3e073
Move defines below includes
2021-02-11 16:48:52 +01:00
Riyyi
58afdbeae6
Re-add stb dependency in the new location
2021-02-11 16:17:45 +01:00
Riyyi
aa34cd56ce
Remove stb dependency
2021-02-11 16:13:24 +01:00
Riyyi
cdbb456ce8
Move try/catch from settings to file, overwrite invalid settings file
2021-02-11 15:54:06 +01:00
Riyyi
adc0848a23
Implement nlohmann::json arbitrary type conversion for settings
2021-02-11 01:31:14 +01:00
Riyyi
7042a42032
Settings: use json util, update window size to uint32_t
2021-02-10 23:20:25 +01:00
Riyyi
e044397e88
Omit copy constructors for strings in constructors
2021-02-10 14:36:19 +01:00
Riyyi
858a2bd0d4
Prevent double gltf json parsing
2021-02-09 14:46:00 +01:00
Riyyi
68b2e93969
Add support for .gltf file reading with 1 buffer binary
2021-02-09 01:47:59 +01:00
Riyyi
1c311fca64
Update gltf file assert messages
2021-02-09 00:42:10 +01:00
Riyyi
b8bd6aad70
Rename gltf file class
2021-02-08 23:52:01 +01:00
Riyyi
aa9403dde0
Convert double to float in gltf model and json util
2021-02-07 16:48:38 +01:00
Riyyi
a7953b4bdd
Add gltf node parsing
2021-02-07 01:51:46 +01:00
Riyyi
cf44172943
Add gltf scene parsing, change assert messages capitalization
2021-02-06 13:59:52 +01:00
Riyyi
5ddfa0515c
Add gltf json length check
2021-02-06 01:53:59 +01:00
Riyyi
1134ce6a43
Start working on glTF model class
2021-02-06 01:52:43 +01:00
Riyyi
105912a62a
Add json object parsing and helpers
2021-02-06 00:57:33 +01:00
Riyyi
ac444184a9
Add json array property parsing, helper functions
2021-02-05 17:47:19 +01:00
Riyyi
b554b91ec0
Add json utility class
2021-02-05 01:09:43 +01:00
Riyyi
70e520eaf2
Add gltf file class
2021-02-04 11:50:03 +01:00
Riyyi
e106f0ba8d
Move std::stou to integer.h, add intToHex util
2021-02-04 10:50:30 +01:00
Riyyi
a2aec7f2ff
Move file length check to separate function
2021-02-04 01:39:08 +01:00
Riyyi
bbd84df19c
String already adds a null terminator
2021-02-04 01:38:08 +01:00
Riyyi
989e0f10ac
Remove [[noreturn]] from assert as it generated alot of compiler warnings, why?
2021-02-01 19:42:12 +01:00
Riyyi
dacebbe6b1
Remove entrypoint.h from generic include collection
2021-02-01 17:21:43 +01:00
Riyyi
a0be1dcd67
Remove unused forward declarations
2021-02-01 16:48:01 +01:00
Riyyi
a1372b971e
Implement signal handling: SIGINT, SIGTERM
2021-02-01 16:40:12 +01:00
Riyyi
c209716e50
Remove newline
2021-02-01 04:03:56 +01:00
Riyyi
77c79aba14
Fix string util parameters
2021-02-01 04:02:49 +01:00
Riyyi
a962f7bc31
Change Character postiion/size to uint, add Font size
2021-02-01 03:56:52 +01:00
Riyyi
9734e7fbe0
Add std::stou, cant believe its not in the STL
2021-02-01 03:55:19 +01:00
Riyyi
54171260b6
Improve assert implementation and output formatting
2021-02-01 03:47:20 +01:00
Riyyi
4cbf0a6811
Change font advance from int to uint
2021-02-01 02:34:26 +01:00
Riyyi
3ce136741d
Improve API regarding server-side GL capabilities, fix font transparency
2021-01-31 14:54:06 +01:00
Riyyi
279379c15d
Fix logs: empty logs should print a newline
2021-01-30 21:27:56 +01:00
Riyyi
32c7cc57f4
Fix assert
2021-01-30 20:22:54 +01:00
Riyyi
1bcbca899d
Add checks to font loading
2021-01-30 20:21:42 +01:00
Riyyi
230e866e7a
Improve debug logging API
2021-01-30 14:07:03 +01:00
Riyyi
81d6f06238
Float comparison should be between two floats
2021-01-29 01:20:55 +01:00
Riyyi
5d11432573
Add transform printing to lua
2021-01-29 01:16:25 +01:00
Riyyi
225dff18c7
Align glm vector elements when printing
2021-01-29 01:15:57 +01:00
Riyyi
58cd3b4116
Add to string conversion for glm types in lua
2021-01-29 00:58:50 +01:00
Riyyi
4b10c84adf
Add tostring converter using the LogStream system
2021-01-29 00:45:26 +01:00
Riyyi
774ae23a20
Add BufferedLogStream
2021-01-29 00:00:40 +01:00
Riyyi
62eddf8a6b
Line separators until column 44
2021-01-28 23:14:30 +01:00
Riyyi
98785fa182
Rename folders to singular form
2021-01-28 16:37:26 +01:00
Riyyi
bec00a00a2
Rename systems files
2021-01-28 16:30:47 +01:00
Riyyi
b402506a11
Split components into separate files
2021-01-28 15:33:24 +01:00
Riyyi
e0510a3f6f
Rename inputcodes to keycodes
2021-01-28 14:38:39 +01:00
Riyyi
09b15f6d4f
Move file/input/log to io directory, rename assertions to assert
2021-01-28 14:31:50 +01:00
Riyyi
bb6d90e4ad
#include <> should only be used for system directories
2021-01-28 14:07:30 +01:00
Riyyi
217502d45c
#include <> should only be used for system directories
2021-01-28 13:41:02 +01:00
Riyyi
bcd2dc8192
Simplify camera controllers perspective movement calculation
2021-01-28 03:21:29 +01:00
Riyyi
77a6a9715e
Finish lua camera controller implementation
2021-01-28 03:10:37 +01:00
Riyyi
7638472f3f
Flip orthographic camera rotation buttons
2021-01-28 01:55:07 +01:00
Riyyi
38f7755fab
Fix keycodes unordered_map indexing
2021-01-28 01:05:52 +01:00
Riyyi
4365160e95
Rename Lua to LuaScriptg
2021-01-27 23:14:10 +01:00
Riyyi
c7a97d3c1f
Implement sol3 into lua script
2021-01-27 23:03:21 +01:00
Riyyi
35f5e9d0c4
Mark log write functions as inline
2021-01-27 22:56:09 +01:00
Riyyi
d60d5925bf
Add sol3 dependency
2021-01-27 22:38:41 +01:00
Riyyi
bcb518643f
Do not compile Lua tests
2021-01-27 16:32:33 +01:00
Riyyi
246c683cd6
Add lua component
2021-01-24 02:15:15 +01:00
Riyyi
2cf42c7dea
Implement lua script into script system
2021-01-24 02:14:51 +01:00
Riyyi
8a740f55ba
Add lua script class
2021-01-24 02:11:26 +01:00
Riyyi
901d3e2355
Add Lua dependency
2021-01-24 02:00:16 +01:00
Riyyi
2fe2d537fc
Remove unnecessary c_str()
2021-01-21 01:09:38 +01:00
Riyyi
a41f8467b4
Fix instantiating multiple native scripts and their cleanup
2021-01-19 00:44:23 +01:00
Riyyi
848fa8b700
Move include to header
2021-01-18 17:43:47 +01:00
Riyyi
639ef36ff7
Clean up cameracontroller header
2021-01-18 17:41:47 +01:00
Riyyi
4baa7cd7df
Move orthographic and perspective logic to cameracontroller.cpp
2021-01-18 17:30:04 +01:00
Riyyi
f09e998d52
Add script system
2021-01-18 17:20:50 +01:00
Riyyi
cf4b6c1711
Remove non-existant include
2021-01-18 17:18:40 +01:00
Riyyi
e021743e6a
Remove entity class
2021-01-18 17:16:51 +01:00
Riyyi
ca7f4a50fb
Add nativescript component, camera controller
2021-01-18 17:11:08 +01:00
Riyyi
543814c63c
Merge othographic and perspective camera component
2021-01-18 11:53:17 +01:00
Riyyi
e08eec3b36
Dont use new keyword with unique_ptr
2021-01-18 11:22:26 +01:00
Riyyi
839bef091f
Convert dbgln to r-value reference like the callee's to fix compiler ambiguous warnings
2021-01-16 03:22:01 +01:00
Riyyi
74ab4f0b70
Take callback as a const ref
2021-01-15 12:38:09 +01:00