summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/OGL/GLInterface/AGL.h
blob: 4e453aab291e313b6e0b3511f87fab4a587383d7 (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 "VideoBackends/OGL/GLInterfaceBase.h"

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

};