| 
									
										
										
										
											2017-02-22 12:21:10 -05:00
										 |  |  | // Copyright 2017 Dolphin Emulator Project
 | 
					
						
							|  |  |  | // Licensed under GPLv2+
 | 
					
						
							|  |  |  | // Refer to the license.txt file included.
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #pragma once
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include "Common/GL/GLInterfaceBase.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class BWindow; | 
					
						
							|  |  |  | class BGLView; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class cInterfaceBGL final : public cInterfaceBase | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | public: | 
					
						
							|  |  |  |   void Swap() override; | 
					
						
							|  |  |  |   void* GetFuncAddress(const std::string& name) override; | 
					
						
							| 
									
										
										
										
											2017-06-26 12:32:09 +02:00
										 |  |  |   bool Create(void* window_handle, bool stereo, bool core) override; | 
					
						
							| 
									
										
										
										
											2017-02-22 12:21:10 -05:00
										 |  |  |   bool MakeCurrent() override; | 
					
						
							|  |  |  |   bool ClearCurrent() override; | 
					
						
							|  |  |  |   void Shutdown() override; | 
					
						
							|  |  |  |   void Update() override; | 
					
						
							|  |  |  |   void SwapInterval(int interval) override; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | private: | 
					
						
							|  |  |  |   BWindow* m_window; | 
					
						
							|  |  |  |   BGLView* m_gl; | 
					
						
							|  |  |  | }; |