Commit Graph
100 Commits
Author SHA1 Message Date
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
Riyyi bb2b1ed38f Rename camera projection view function name 2021-01-14 15:25:36 +01:00
Riyyi 08d67038f6 Re-add orthographic camera implementation 2021-01-14 12:16:52 +01:00
Riyyi f47643d257 Move projectionView retrieving to camera system 2021-01-14 12:16:09 +01:00
Riyyi 0b2cc9f411 Move example entities to scene 2021-01-14 03:29:21 +01:00
Riyyi a4845d1bda Add render system 2021-01-14 03:18:43 +01:00
Riyyi 2e044d61cf Add vec4 to logstream 2021-01-14 03:16:36 +01:00
Riyyi eea20285e4 Remove unused parameter 2021-01-14 03:07:02 +01:00
Riyyi 6fb114cbd4 Remove old transform class 2021-01-13 21:18:55 +01:00
Riyyi f740a34b89 Imediately return 2021-01-13 21:02:40 +01:00
Riyyi fa5ec61c61 Add transform component printing to log 2021-01-13 21:01:17 +01:00
Riyyi aba518bbbb Remove old camera class 2021-01-13 20:50:38 +01:00
Riyyi c599486ff5 Implement transform and camera system into scene 2021-01-13 20:43:57 +01:00
Riyyi 716c6569c0 Add transform and camera system 2021-01-13 20:38:39 +01:00
Riyyi e884d68ce0 Add camera component 2021-01-13 20:37:18 +01:00
Riyyi 1580794521 Improve entity weak_ptr expiration check 2021-01-13 15:01:43 +01:00
Riyyi eb754877ff Add entity weak_ptr expiration check 2021-01-13 14:59:17 +01:00
Riyyi 9b2df60b68 Clarify entity operator overloads 2021-01-13 14:48:29 +01:00
Riyyi a4a16f4a52 Add components and scene 2021-01-13 14:41:36 +01:00
Riyyi 132860e179 Add entity class 2021-01-13 14:31:50 +01:00
Riyyi 37994e58c9 Do not expand parameter pack in forward functions 2021-01-13 14:29:31 +01:00
Riyyi e0b2b554ee Change render character initialized log color 2021-01-13 14:12:48 +01:00
Riyyi e95d3a560e Add font batch renderer 2021-01-13 14:03:00 +01:00
Riyyi 0425db291f Update engine name in README.org 2021-01-13 12:57:00 +01:00
Riyyi 3d78f056fb Add dependency entt 2021-01-13 12:56:08 +01:00
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
2021-01-13 12:02:12 +01:00
Riyyi de477e8d38 Remove freetype dependency 2021-01-12 23:16:26 +01:00
Riyyi 8dabc2d1a0 Enable tranparency in the context 2021-01-12 02:17:59 +01:00
Riyyi 2d54a8372f Set texture unit 0 in base class 2021-01-11 16:03:31 +01:00
Riyyi b8438ad3e7 Convert Renderer2D to singleton pattern 2021-01-11 15:59:29 +01:00
Riyyi fafc831d4e Use the shader manager singleton in the renderer 2021-01-11 01:37:46 +01:00
Riyyi 57a34b8be1 Add singleton to shader and texture manager 2021-01-11 01:23:38 +01:00
Riyyi 7dea148ef8 Change OpenGL info log color 2021-01-11 01:13:08 +01:00
Riyyi 1e0682c7a5 Rename Application::get() singleton to the() 2021-01-11 00:26:30 +01:00
Riyyi 3dc21abe17 Convert some shared to unique pointers 2021-01-11 00:21:40 +01:00
Riyyi 61b061d55a Add comment as a color to log 2021-01-09 23:55:17 +01:00
Riyyi acd6a229df Add inline to more functions 2021-01-09 23:37:51 +01:00
Riyyi b947dcf5a8 Implement batch rendering in application.cpp, combine color / texure shader into one batch shader 2021-01-09 12:41:21 +01:00
Riyyi cc4464558a Add batch rendering functionality to Renderer2D 2021-01-09 12:25:09 +01:00
Riyyi 5f36f3d83a Add more buffer data type support 2021-01-09 00:35:44 +01:00
Riyyi b0d2ef2b93 Add setting texture unit in bind() 2021-01-08 01:51:34 +01:00
Riyyi 25e6079000 Add setting of int arrays in Shader 2021-01-08 00:56:19 +01:00
Riyyi bc9449e7de Add debugging configuration 2021-01-07 14:28:57 +01:00
Riyyi a45dd7cc03 Add option to create dynamic VertexBuffer 2021-01-07 00:17:20 +01:00
Riyyi fdc8b2f389 Add vec2 to LogStream 2021-01-06 14:52:51 +01:00
Riyyi 5d98a8a0fa Match getter with variable name 2021-01-06 03:02:10 +01:00
Riyyi 28ea13c762 Convert Settings::load() to use a reference 2021-01-06 00:29:38 +01:00