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.
9 #ifndef LIBGLESV2_MAIN_H_
10 #define LIBGLESV2_MAIN_H_
13 #include <GLES2/gl2.h>
14 #include <GLES2/gl2ext.h>
16 #include "common/debug.h"
17 #include "libEGL/Display.h"
19 #include "libGLESv2/Context.h"
26 egl::Display *display;
29 void makeCurrent(Context *context, egl::Display *display, egl::Surface *surface);
31 Context *getContext();
32 egl::Display *getDisplay();
34 IDirect3DDevice9 *getDevice();
37 void error(GLenum errorCode);
40 const T &error(GLenum errorCode, const T &returnValue)
47 #endif // LIBGLESV2_MAIN_H_