*/
_EGLMode *
_eglAddMode(_EGLScreen *screen, EGLint width, EGLint height,
- EGLint refreshRate, char *name)
+ EGLint refreshRate, const char *name)
{
EGLint n;
_EGLMode *newModes;
EGLint Width, Height; /* size in pixels */
EGLint RefreshRate; /* rate * 1000.0 */
EGLBoolean Stereo;
- char *Name;
+ const char *Name;
/* Other possible attributes */
/* interlaced */
extern _EGLMode *
_eglAddMode(_EGLScreen *screen, EGLint width, EGLint height,
- EGLint refreshRate, char *name);
+ EGLint refreshRate, const char *name);
extern EGLBoolean
/**
- * Return a new _EGLScreen object.
+ * Initialize an _EGLScreen object to default values.
*/
void
_eglInitScreen(_EGLScreen *screen)
}
+/**
+ * Initialize the given _EGLSurface object. Assign it an EGLSurface handle.
+ * Return the EGLSurface handle or EGL_BAD_SURFACE if error.
+ */
EGLSurface
-_eglInitScreenSurfaceMESA(_EGLSurface *surf, _EGLDriver *drv, EGLDisplay dpy, EGLConfig config,
- const EGLint *attrib_list)
+_eglInitScreenSurface(_EGLSurface *surf, _EGLDriver *drv, EGLDisplay dpy,
+ EGLConfig config, const EGLint *attrib_list)
{
EGLint width = 0, height = 0;
EGLint i;
EGLSurface surface;
surf = (_EGLSurface *) malloc(sizeof(_EGLSurface));
- surface = _eglInitScreenSurfaceMESA(surf, drv, dpy, config, attrib_list);
+ surface = _eglInitScreenSurface(surf, drv, dpy, config, attrib_list);
if (surface == EGL_NO_SURFACE)
free(surf);
extern EGLSurface
-_eglInitScreenSurfaceMESA(_EGLSurface *surf, _EGLDriver *drv, EGLDisplay dpy, EGLConfig config,
- const EGLint *attrib_list);
+_eglInitScreenSurface(_EGLSurface *surf, _EGLDriver *drv, EGLDisplay dpy, EGLConfig config, const EGLint *attrib_list);
+
extern EGLSurface
_eglCreateScreenSurfaceMESA(_EGLDriver *drv, EGLDisplay dpy, EGLConfig config, const EGLint *attrib_list);