| 
									
										
										
										
											2015-06-11 22:57:41 +03:00
										 |  |  | #ifndef CONTEXT_GL_HAIKU_H
 | 
					
						
							|  |  |  | #define CONTEXT_GL_HAIKU_H
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #if defined(OPENGL_ENABLED) || defined(LEGACYGL_ENABLED)
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include "drivers/gl_context/context_gl.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include "haiku_direct_window.h"
 | 
					
						
							|  |  |  | #include "haiku_gl_view.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class ContextGL_Haiku : public ContextGL { | 
					
						
							|  |  |  | private: | 
					
						
							|  |  |  | 	HaikuGLView* view; | 
					
						
							|  |  |  | 	HaikuDirectWindow* window; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | public: | 
					
						
							| 
									
										
										
										
											2015-06-16 21:52:24 +03:00
										 |  |  | 	ContextGL_Haiku(HaikuDirectWindow* p_window); | 
					
						
							| 
									
										
										
										
											2015-06-11 22:57:41 +03:00
										 |  |  | 	~ContextGL_Haiku(); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	virtual Error initialize(); | 
					
						
							| 
									
										
										
										
											2016-03-09 00:00:52 +01:00
										 |  |  | 	virtual void release_current(); | 
					
						
							|  |  |  | 	virtual void make_current(); | 
					
						
							| 
									
										
										
										
											2015-06-11 22:57:41 +03:00
										 |  |  | 	virtual void swap_buffers(); | 
					
						
							|  |  |  | 	virtual int get_window_width(); | 
					
						
							|  |  |  | 	virtual int get_window_height(); | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 |