emu_window_glfw.h 686 B

1234567891011121314151617181920212223242526272829303132
  1. // Copyright 2014 Citra Emulator Project
  2. // Licensed under GPLv2
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include <GLFW/glfw3.h>
  6. #include "common/emu_window.h"
  7. class EmuWindow_GLFW : public EmuWindow {
  8. public:
  9. EmuWindow_GLFW();
  10. ~EmuWindow_GLFW();
  11. /// Swap buffers to display the next frame
  12. void SwapBuffers();
  13. /// Polls window events
  14. void PollEvents();
  15. /// Makes the graphics context current for the caller thread
  16. void MakeCurrent();
  17. /// Releases (dunno if this is the "right" word) the GLFW context from the caller thread
  18. void DoneCurrent();
  19. GLFWwindow* m_render_window; ///< Internal GLFW render window
  20. private:
  21. };