27 lines
617 B
C++
27 lines
617 B
C++
// 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;
|
|
};
|