2
// Copyright (c) 2002-2010 The ANGLE Project Authors. All rights reserved.
3
// Use of this source code is governed by a BSD-style license that can be
4
// found in the LICENSE file.
7
// main.h: Management of thread-local data.
10
#define LIBEGL_MAIN_H_
14
#include <EGL/eglext.h>
23
EGLSurface drawSurface;
24
EGLSurface readSurface;
27
void setCurrentError(EGLint error);
28
EGLint getCurrentError();
30
void setCurrentAPI(EGLenum API);
31
EGLenum getCurrentAPI();
33
void setCurrentDisplay(EGLDisplay dpy);
34
EGLDisplay getCurrentDisplay();
36
void setCurrentDrawSurface(EGLSurface surface);
37
EGLSurface getCurrentDrawSurface();
39
void setCurrentReadSurface(EGLSurface surface);
40
EGLSurface getCurrentReadSurface();
43
void error(EGLint errorCode);
46
const T &error(EGLint errorCode, const T &returnValue)
54
const T &success(const T &returnValue)
56
egl::setCurrentError(EGL_SUCCESS);
61
#endif // LIBEGL_MAIN_H_