forked from dolphin-emu/dolphin
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			574 B
		
	
	
	
		
			Objective-C
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			574 B
		
	
	
	
		
			Objective-C
		
	
	
	
	
	
// 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;
 | 
						|
};
 |