ApplicationWindowWin.h 663 B

123456789101112131415161718192021222324
  1. // Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
  2. // SPDX-FileCopyrightText: 2024 Jorrit Rouwe
  3. // SPDX-License-Identifier: MIT
  4. #pragma once
  5. #include <Window/ApplicationWindow.h>
  6. // Responsible for opening the main window
  7. class ApplicationWindowWin : public ApplicationWindow
  8. {
  9. public:
  10. /// Initialize the window
  11. virtual void Initialize(const char *inTitle) override;
  12. /// Access to the window handle
  13. HWND GetWindowHandle() const { return mhWnd; }
  14. /// Enter the main loop and keep rendering frames until the window is closed
  15. virtual void MainLoop(RenderCallback inRenderCallback) override;
  16. protected:
  17. HWND mhWnd;
  18. };