Commit graph

8 commits

Author SHA1 Message Date
Light
102dec99e0 ltpch
- Added target_precompile_headers to CMakeLists
- Removed #include "ltpch.h" from every .cpp file
2021-10-07 14:51:17 +03:30
Light
0c8b26360a New Events, Fixes
- Added SetCharEvent
- Added KeyRepeatEVent
- Fixed ImGui not picking keys from io.KeyMap because it gets assigned to VK_**
      keys from windows after ImGui_ImplWin32_Init call, had to re-assign them back
      to Key::** (glfw key codes)...
- Removed UserInterface::OnInput
- Maintenance
2021-08-01 16:43:59 +04:30
Light
9033ceffa1 Major changes
- Major maintenance
2021-07-29 17:12:13 +04:30
Light
55869f6106 Ref, Scope
- Changed all std::unique_ptr/shared_ptr stuff to use Ref/Scope
- Fixed the Logger.h include in Base.h problem
2021-07-26 11:43:37 +04:30
Light
57616d755c WindowResizeEvent | FlushScene
- 'Renderer' now receives 'WindowResizedEvent' and handle the
      'Framebuffer' and viewport stuff
- Added 'Renderer' now uses the new 'FlushScene' function to flush when
      the mapped vertex buffer is filled
- The viewport is now set by 'RenderCommand' via the 'Renderer' rather
      than the 'GraphicsConntext'

- 'Window' no longer sends 'WindowResizedEvent' to 'GraphicsContext'
- 'GraphicsContext' no longer receives 'OnWindowResize' events

- Note: Sending events should be done by the 'Application'
2021-07-14 00:17:30 +04:30
Light3039
3363239c8d Linux fix
* Fixed lWindow
      # Fixed the key and mouse button events
      # Decleared the 'PollEvents' function
      # Decleared the 'OnEvent' function

* Fixed GraphicsContext (typo)
      # Changed the GraphicsContext::OpenGL to GraphicsAPI::OpenGL

* Fixed 'QuadRendererProgram' (linux)
      # Removed 'QuadRendererVertex''s forward decleration

* Fixed 'TextureRendererProgram' (linux)
      # Removed 'TextureRendererProgram''s forward decleration

* Added __builtin_trap on 'LT_*_ASSERT's for linux platforms
2021-07-12 11:32:07 +04:30
Light
2ab97d3863 Major Maintenance
- Major tidying
- Moved 'RendererProgram' classes out of the 'Renderer' class
- Moved 'RenderCommand' member variable out of 'GraphicsContext' and into
       the 'Renderer' class as a unique_ptr. results in 'Renderer' taking a
       windowHandle for construction
- Defined new macros for max quads in 'Renderer.h'
- Added the 'Stringifier' to 'Base.h'
- Added the 'ResourceManager' to the 'LightEngine.h'
- Application now logs the current file directory
- Fixed the forward declaration in GraphicsContext
- Fixed the debug break in Base.h
- Fixed 'dxShader' not logging compile errors
- 'glVertexLayout' now takes in a shared_ptr for 'VertexBuffer'
- 'glShader' now logs the shader compilation errors properly
- 'dxVertexLayout' now takes in a shared_ptr for 'Shader"
- Modified 'dxSharedContext' members to be private and made getters for them
- 'dxRenderCommand::SwapBuffers' now throws dxException for
       DXGI_ERROR_DEVICE_REMOD error
2021-07-01 19:25:46 +04:30
Light3039
8ece539976 lWindow class
- Added window class for linux
2021-06-27 12:05:46 +04:30