mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 13:41:03 +00:00 
			
		
		
		
	
		
			
	
	
		
			32 lines
		
	
	
	
		
			687 B
		
	
	
	
		
			C
		
	
	
	
	
	
		
		
			
		
	
	
			32 lines
		
	
	
	
		
			687 B
		
	
	
	
		
			C
		
	
	
	
	
	
|   | #ifndef CONTEXT_GL_HAIKU_H
 | ||
|  | #define CONTEXT_GL_HAIKU_H
 | ||
|  | 
 | ||
|  | #if defined(OPENGL_ENABLED) || defined(LEGACYGL_ENABLED)
 | ||
|  | 
 | ||
|  | #include "os/os.h"
 | ||
|  | #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; | ||
|  | 	OS::VideoMode video_mode; | ||
|  | 
 | ||
|  | public: | ||
|  | 	ContextGL_Haiku(HaikuDirectWindow** p_window, OS::VideoMode& default_video_mode); | ||
|  | 	~ContextGL_Haiku(); | ||
|  | 
 | ||
|  | 	virtual Error initialize(); | ||
|  | 	virtual void release_current();	 | ||
|  | 	virtual void make_current();	 | ||
|  | 	virtual void swap_buffers(); | ||
|  | 	virtual int get_window_width(); | ||
|  | 	virtual int get_window_height(); | ||
|  | }; | ||
|  | 
 | ||
|  | #endif
 | ||
|  | #endif
 |