mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
opengl: add egl-context.[ch] helpers
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>
This commit is contained in:
parent
e9c1b459f2
commit
6c18744d0f
3 changed files with 49 additions and 0 deletions
14
include/ui/egl-context.h
Normal file
14
include/ui/egl-context.h
Normal file
|
@ -0,0 +1,14 @@
|
|||
#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 */
|
Loading…
Add table
Add a link
Reference in a new issue