summaryrefslogtreecommitdiff
path: root/Source/Core/Common/GL/GLInterface/WGL.h
blob: b82a521b1675937be868a40acae25eb92388ba4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright 2008 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.

#pragma once

#include <string>
#include "Common/GL/GLInterfaceBase.h"

class cInterfaceWGL : public cInterfaceBase
{
public:
	void SwapInterval(int interval) override;
	void Swap() override;
	void* GetFuncAddress(const std::string& name) override;
	bool Create(void* window_handle, bool core) override;
	bool MakeCurrent() override;
	bool ClearCurrent() override;
	void Shutdown() override;

	void Update() override;
	bool PeekMessages() override;

private:
	HWND m_window_handle = nullptr;
};