summaryrefslogtreecommitdiffstats
path: root/src/egl/main/egldisplay.h
blob: 55555e67d8a88b9cffbe9ede44a573c138def775 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef EGLDISPLAY_INCLUDED
#define EGLDISPLAY_INCLUDED


#include "egltypedefs.h"


struct _egl_display 
{
   EGLDisplay Handle;

   char *Name;
   _EGLDriver *Driver;

   EGLint NumScreens;
   _EGLScreen **Screens;  /* array [NumScreens] */

   EGLint NumConfigs;
   _EGLConfig *Configs;  /* array [NumConfigs] */
};


extern _EGLDisplay *
_eglNewDisplay(NativeDisplayType displayName);


extern _EGLDisplay *
_eglLookupDisplay(EGLDisplay dpy);


extern _EGLDisplay *
_eglGetCurrentDisplay(void);


extern void
_eglDeleteDisplay(_EGLDisplay *disp);


#endif /* EGLDISPLAY_INCLUDED */