summaryrefslogtreecommitdiff
path: root/Source/Core/Common/GL/GLInterface/AGL.h
blob: f9aeb77a9578461850ed0d255acd08dde982731e (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
27
// Copyright 2008 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.

#pragma once

#ifdef __APPLE__
#import <AppKit/AppKit.h>
#endif

#include "Common/GL/GLInterfaceBase.h"

class cInterfaceAGL : public cInterfaceBase
{
private:
	NSView* cocoaWin;
	NSOpenGLContext* cocoaCtx;
public:
	void Swap() override;
	bool Create(void* window_handle, bool core) override;
	bool MakeCurrent() override;
	bool ClearCurrent() override;
	void Shutdown() override;
	void Update() override;
	void SwapInterval(int interval) override;

};