1
0
Fork 0
forked from suyu/suyu
suyu/src/citra/emu_window/emu_window_glfw.h

41 lines
995 B
C
Raw Normal View History

2014-04-09 02:25:53 +02:00
// Copyright 2014 Citra Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
2013-09-05 04:10:47 +02:00
#pragma once
2013-09-05 04:10:47 +02:00
#include <GLFW/glfw3.h>
#include "common/emu_window.h"
2013-09-05 04:10:47 +02:00
class EmuWindow_GLFW : public EmuWindow {
public:
EmuWindow_GLFW();
~EmuWindow_GLFW();
/// Swap buffers to display the next frame
void SwapBuffers();
/// Polls window events
void PollEvents();
/// Makes the graphics context current for the caller thread
void MakeCurrent();
/// Releases (dunno if this is the "right" word) the GLFW context from the caller thread
void DoneCurrent();
static void OnKeyEvent(GLFWwindow* win, int key, int scancode, int action, int mods);
2013-09-05 04:10:47 +02:00
/// Whether the window is still open, and a close request hasn't yet been sent
const bool IsOpen();
void ReloadSetKeymaps() override;
2013-09-05 04:10:47 +02:00
private:
GLFWwindow* m_render_window; ///< Internal GLFW render window
/// Device id of keyboard for use with KeyMap
int keyboard_id;
2013-09-05 04:10:47 +02:00
};