mirror of
				https://github.com/qemu/qemu.git
				synced 2025-10-26 20:31:42 +00:00 
			
		
		
		
	 6c18744d0f
			
		
	
	
		6c18744d0f
		
	
	
	
	
		
			
			Add helper functions to manage opengl contexts using egl. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
		
			
				
	
	
		
			15 lines
		
	
	
		
			519 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			519 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef EGL_CONTEXT_H
 | |
| #define EGL_CONTEXT_H
 | |
| 
 | |
| #include "ui/console.h"
 | |
| #include "ui/egl-helpers.h"
 | |
| 
 | |
| QEMUGLContext qemu_egl_create_context(DisplayChangeListener *dcl,
 | |
|                                       QEMUGLParams *params);
 | |
| void qemu_egl_destroy_context(DisplayChangeListener *dcl, QEMUGLContext ctx);
 | |
| int qemu_egl_make_context_current(DisplayChangeListener *dcl,
 | |
|                                   QEMUGLContext ctx);
 | |
| QEMUGLContext qemu_egl_get_current_context(DisplayChangeListener *dcl);
 | |
| 
 | |
| #endif /* EGL_CONTEXT_H */
 |