mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
ui: split the GL context in a different object
This will allow to have one GL context but a variable number of listeners. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Acked-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
7cc712e986
commit
5e79d516e8
14 changed files with 119 additions and 76 deletions
|
@ -16,6 +16,7 @@
|
|||
#endif
|
||||
|
||||
struct sdl2_console {
|
||||
DisplayGLCtx dgc;
|
||||
DisplayChangeListener dcl;
|
||||
DisplaySurface *surface;
|
||||
DisplayOptions *opts;
|
||||
|
@ -65,10 +66,10 @@ void sdl2_gl_switch(DisplayChangeListener *dcl,
|
|||
void sdl2_gl_refresh(DisplayChangeListener *dcl);
|
||||
void sdl2_gl_redraw(struct sdl2_console *scon);
|
||||
|
||||
QEMUGLContext sdl2_gl_create_context(DisplayChangeListener *dcl,
|
||||
QEMUGLContext sdl2_gl_create_context(DisplayGLCtx *dgc,
|
||||
QEMUGLParams *params);
|
||||
void sdl2_gl_destroy_context(DisplayChangeListener *dcl, QEMUGLContext ctx);
|
||||
int sdl2_gl_make_context_current(DisplayChangeListener *dcl,
|
||||
void sdl2_gl_destroy_context(DisplayGLCtx *dgc, QEMUGLContext ctx);
|
||||
int sdl2_gl_make_context_current(DisplayGLCtx *dgc,
|
||||
QEMUGLContext ctx);
|
||||
|
||||
void sdl2_gl_scanout_disable(DisplayChangeListener *dcl);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue