1
0
Fork 0
forked from suyu/suyu
suyu/src/citra/emu_window/emu_window_glfw.h
archshift e6594f9f53 Added configuration file system.
Uses QSettings on citra-qt, and inih on citra-cli.
2014-10-07 15:09:37 -07:00

37 lines
886 B
C++

// Copyright 2014 Citra Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
#pragma once
#include <GLFW/glfw3.h>
#include "common/emu_window.h"
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);
void ReloadSetKeymaps() override;
private:
GLFWwindow* m_render_window; ///< Internal GLFW render window
/// Device id of keyboard for use with KeyMap
int keyboard_id;
};