sync with latest
[sdk/emulator/qemu.git] / hw / yagl_egl_native_config.h
1 #ifndef _QEMU_YAGL_EGL_NATIVE_CONFIG_H
2 #define _QEMU_YAGL_EGL_NATIVE_CONFIG_H
3
4 #include "yagl_types.h"
5 #include <EGL/egl.h>
6
7 struct yagl_process_state;
8
9 struct yagl_egl_native_config
10 {
11     /*
12      * Filled by the driver.
13      */
14
15     EGLint red_size;
16     EGLint green_size;
17     EGLint blue_size;
18     EGLint alpha_size;
19     EGLint buffer_size;
20     EGLenum caveat;
21     EGLint config_id;
22     EGLint frame_buffer_level;
23     EGLint depth_size;
24     EGLint max_pbuffer_width;
25     EGLint max_pbuffer_height;
26     EGLint max_pbuffer_size;
27     EGLint max_swap_interval;
28     EGLint min_swap_interval;
29     EGLint native_visual_id;
30     EGLint native_visual_type;
31     EGLint samples_per_pixel;
32     EGLint stencil_size;
33     EGLenum transparent_type;
34     EGLint trans_red_val;
35     EGLint trans_green_val;
36     EGLint trans_blue_val;
37
38     void *driver_data;
39
40     /*
41      * Filled automatically by 'yagl_egl_config_xxx'.
42      */
43
44     EGLint surface_type;
45     EGLBoolean native_renderable;
46     EGLint renderable_type;
47     EGLenum conformant;
48     EGLint sample_buffers_num;
49 };
50
51 /*
52  * Initialize to default values.
53  */
54 void yagl_egl_native_config_init(struct yagl_egl_native_config *cfg);
55
56 #endif