console.h (4133fa711f37f0db303bf5aac03ea31b5be6ac1d) console.h (46e19e149f3b129a22c440caba853188df67deab)
1#ifndef CONSOLE_H
2#define CONSOLE_H
3
4#include "ui/qemu-pixman.h"
5#include "qom/object.h"
6#include "qapi/qmp/qdict.h"
7#include "qemu/notify.h"
8#include "qemu/typedefs.h"
9#include "qapi-types.h"
10#include "qemu/error-report.h"
11#include "qapi/error.h"
12
13#ifdef CONFIG_OPENGL
14# include <epoxy/gl.h>
1#ifndef CONSOLE_H
2#define CONSOLE_H
3
4#include "ui/qemu-pixman.h"
5#include "qom/object.h"
6#include "qapi/qmp/qdict.h"
7#include "qemu/notify.h"
8#include "qemu/typedefs.h"
9#include "qapi-types.h"
10#include "qemu/error-report.h"
11#include "qapi/error.h"
12
13#ifdef CONFIG_OPENGL
14# include <epoxy/gl.h>
15# include "ui/shader.h"
15#endif
16
17/* keyboard/mouse support */
18
19#define MOUSE_EVENT_LBUTTON 0x01
20#define MOUSE_EVENT_RBUTTON 0x02
21#define MOUSE_EVENT_MBUTTON 0x04
22#define MOUSE_EVENT_WHEELUP 0x08

--- 387 unchanged lines hidden (view full) ---

410/* Set the low-level window id for the console */
411void qemu_console_set_window_id(QemuConsole *con, int window_id);
412
413void console_select(unsigned int index);
414void qemu_console_resize(QemuConsole *con, int width, int height);
415DisplaySurface *qemu_console_surface(QemuConsole *con);
416
417/* console-gl.c */
16#endif
17
18/* keyboard/mouse support */
19
20#define MOUSE_EVENT_LBUTTON 0x01
21#define MOUSE_EVENT_RBUTTON 0x02
22#define MOUSE_EVENT_MBUTTON 0x04
23#define MOUSE_EVENT_WHEELUP 0x08

--- 387 unchanged lines hidden (view full) ---

411/* Set the low-level window id for the console */
412void qemu_console_set_window_id(QemuConsole *con, int window_id);
413
414void console_select(unsigned int index);
415void qemu_console_resize(QemuConsole *con, int width, int height);
416DisplaySurface *qemu_console_surface(QemuConsole *con);
417
418/* console-gl.c */
418typedef struct ConsoleGLState ConsoleGLState;
419#ifdef CONFIG_OPENGL
419#ifdef CONFIG_OPENGL
420ConsoleGLState *console_gl_init_context(void);
421void console_gl_fini_context(ConsoleGLState *gls);
422bool console_gl_check_format(DisplayChangeListener *dcl,
423 pixman_format_code_t format);
420bool console_gl_check_format(DisplayChangeListener *dcl,
421 pixman_format_code_t format);
424void surface_gl_create_texture(ConsoleGLState *gls,
422void surface_gl_create_texture(QemuGLShader *gls,
425 DisplaySurface *surface);
423 DisplaySurface *surface);
426void surface_gl_update_texture(ConsoleGLState *gls,
424void surface_gl_update_texture(QemuGLShader *gls,
427 DisplaySurface *surface,
428 int x, int y, int w, int h);
425 DisplaySurface *surface,
426 int x, int y, int w, int h);
429void surface_gl_render_texture(ConsoleGLState *gls,
427void surface_gl_render_texture(QemuGLShader *gls,
430 DisplaySurface *surface);
428 DisplaySurface *surface);
431void surface_gl_destroy_texture(ConsoleGLState *gls,
429void surface_gl_destroy_texture(QemuGLShader *gls,
432 DisplaySurface *surface);
430 DisplaySurface *surface);
433void surface_gl_setup_viewport(ConsoleGLState *gls,
431void surface_gl_setup_viewport(QemuGLShader *gls,
434 DisplaySurface *surface,
435 int ww, int wh);
436#endif
437
438/* sdl.c */
439#ifdef CONFIG_SDL
440void sdl_display_early_init(int opengl);
441void sdl_display_init(DisplayState *ds, int full_screen, int no_frame);

--- 98 unchanged lines hidden ---
432 DisplaySurface *surface,
433 int ww, int wh);
434#endif
435
436/* sdl.c */
437#ifdef CONFIG_SDL
438void sdl_display_early_init(int opengl);
439void sdl_display_init(DisplayState *ds, int full_screen, int no_frame);

--- 98 unchanged lines hidden ---