Commit Graph
72 Commits
Author SHA1 Message Date
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
Riyyi cedce5e104 Convert Window properties strings to std::string, remove Settings initialized 2021-01-06 00:24:05 +01:00
Riyyi f56cfb9084 Fix small memory leak, thanks valgrind 2021-01-05 15:24:36 +01:00
Riyyi 7a099a8f3d Improve include formatting 2021-01-04 23:50:36 +01:00
Riyyi 0b9f4715fc Add RenderBundle struct and submit() 2021-01-04 23:49:27 +01:00
Riyyi 137c0b94ca Add pre-compiled header (pch.h), bump CMake version 3.1 -> 3.16 2021-01-04 17:45:13 +01:00
Riyyi 4ff17823eb Add model matrix, camera matrix to color and texture shader 2021-01-04 15:45:27 +01:00
Riyyi f01405c0a7 Convert aspect ratio to float 2021-01-04 15:02:02 +01:00
Riyyi 980fd1e540 Add zoom level to orthographic camera 2021-01-04 15:00:11 +01:00
Riyyi 7d5ea60b60 Remove unneeded include 2021-01-04 14:35:46 +01:00
Riyyi ab9a94358a Add camera class 2021-01-04 14:31:12 +01:00
Riyyi 598e4c388f Move settings init message 2021-01-04 14:26:58 +01:00
Riyyi 716c68b166 Fix Input init 2021-01-02 23:19:39 +01:00
Riyyi 0ae8016e5f Remove debug message 2021-01-02 23:18:53 +01:00
Riyyi 29c24ad72a Add Transform component 2021-01-02 23:12:12 +01:00
Riyyi 02d265ac0c Change buffer creation to variant from lower API version 2021-01-02 23:10:17 +01:00
Riyyi 1a9a618ab1 Add mouse window lock 2021-01-02 23:08:46 +01:00
Riyyi 286f54204e Set initial cursor position 2021-01-02 23:05:28 +01:00
Riyyi 966c3c5e59 Remove unused shader variable 2021-01-02 22:57:37 +01:00
Riyyi d5edec17eb Change KeyCode from an extern variable to a function 2021-01-02 03:26:28 +01:00
Riyyi b8f2f0fe31 Add keycodes, remove all uses of glfw3.h from Application 2021-01-02 03:13:01 +01:00
Riyyi 349257eba0 Abstract GLFW away from main loop close 2021-01-02 01:39:48 +01:00
Riyyi 198a61f054 Add nullptr checks to char type logging 2021-01-02 00:50:31 +01:00
Riyyi 965005aaef Add bool to buffer element types 2021-01-01 21:45:27 +01:00
Riyyi 1254a8f0fe Add VertexBuffer layout ASSERT check 2021-01-01 21:44:24 +01:00
Riyyi 6806743b12 One good boy point :^) 2021-01-01 21:42:23 +01:00
Riyyi 48b7097fe3 Move & symbol to the left when its part of the type 2020-12-31 13:07:17 +01:00
Riyyi ed9fba20a8 Add freetype target in the build 2020-12-30 23:16:39 +01:00
Riyyi bf7417ffaf Add freetype include directory 2020-12-30 22:31:17 +01:00
Riyyi d250f7a844 Add freetype dependency 2020-12-30 22:29:35 +01:00
Riyyi c6634f1231 Add 'make run' target 2020-12-30 17:17:21 +01:00
Riyyi 40667ec056 Do not expose event handled 2020-12-30 14:55:52 +01:00
Riyyi e076c80a21 Add ShaderManager class 2020-12-30 14:55:09 +01:00
Riyyi 61623a2e92 Change assert output format 2020-12-30 14:52:50 +01:00
Riyyi 8827f34cea Add OGL version check 2020-12-30 13:06:44 +01:00
Riyyi a29d8d3a8a Change assert output format 2020-12-30 13:05:04 +01:00
Riyyi 154edd8ef5 Change shader parameter names 2020-12-30 12:10:49 +01:00
Riyyi 9aee7e391d Add texture class and texture test 2020-12-30 11:33:56 +01:00
Riyyi 885dedf3cd Add stb dependency 2020-12-30 11:15:58 +01:00
Riyyi 250201f0e3 Add clangd .cache to .gitignore 2020-12-30 01:48:54 +01:00
Riyyi 3a0a6bc610 Add shader uniform data setters 2020-12-29 23:59:55 +01:00
Riyyi 9df926857b Fix dbg message 2020-12-29 15:37:11 +01:00
Riyyi 0fbcf014cd Reorder function declaration 2020-12-28 20:51:24 +01:00
Riyyi 8d78a81838 Improve on the logging system, add assertions.h 2020-12-27 14:44:25 +01:00
Riyyi 108e999332 Increase C++ standard to 17 2020-12-27 14:35:51 +01:00
Riyyi 18d4158ca5 Add learnopengl.com to README 2019-12-25 00:53:14 +01:00
Riyyi c54364a714 Add needed LSP requirements 2019-12-25 00:51:08 +01:00
Riyyi 5933ed96f3 Convert Settings to pure static 2019-12-25 00:06:50 +01:00
Riyyi 2d648c6cee Add mouse offset to Input 2019-12-24 23:19:10 +01:00
Riyyi acedc40411 Add missing includes 2019-12-24 00:19:39 +01:00
Riyyi 81751442bb Add simple renderer class, add example implementation 2019-12-22 19:49:29 +01:00
Riyyi 11883bd17b Add joystick connected event 2019-12-22 17:00:38 +01:00
Riyyi b90e5ed5dd Add VertexArray, BufferLayout, BufferElement 2019-12-22 14:54:38 +01:00
Riyyi b6f96b3e38 Comments 2019-12-21 15:00:45 +01:00
Riyyi dfbcc0ff0a Add code separators 2019-12-21 14:55:33 +01:00
Riyyi 7c8a0c99a4 Add Shader class 2019-12-21 14:54:59 +01:00
Riyyi c5bd231b38 Add VertexBuffer and IndexBuffer classes 2019-12-20 16:04:57 +01:00