This repository has been archived on 2024-03-23. You can view files and clone it, but cannot push or open issues or pull requests.
2014-04-09 00:25:53 +00:00
|
|
|
// Copyright 2014 Citra Emulator Project
|
|
|
|
// Licensed under GPLv2
|
|
|
|
// Refer to the license.txt file included.
|
2013-09-05 02:10:47 +00:00
|
|
|
|
2014-04-06 20:55:05 +00:00
|
|
|
#pragma once
|
2013-09-05 02:10:47 +00:00
|
|
|
|
|
|
|
#include <GL/glew.h>
|
|
|
|
#include <GLFW/glfw3.h>
|
|
|
|
|
2014-04-09 00:15:08 +00:00
|
|
|
#include "common/emu_window.h"
|
2013-09-05 02:10:47 +00: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();
|
|
|
|
|
|
|
|
GLFWwindow* render_window_; ///< Internal GLFW render window
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
};
|