1 // SwiftShader Software Renderer
3 // Copyright(c) 2005-2012 TransGaming Inc.
5 // All rights reserved. No part of this software may be copied, distributed, transmitted,
6 // transcribed, stored in a retrieval system, translated into any human or computer
7 // language by any means, or disclosed to third parties without the explicit written
8 // agreement of TransGaming Inc. Without such an agreement, no rights or licenses, express
9 // or implied, including but not limited to any patent rights, are granted to you.
12 // main.h: Management of thread-local data.
14 #ifndef LIBGLESV2_MAIN_H_
15 #define LIBGLESV2_MAIN_H_
19 #include "common/debug.h"
20 #include "libEGL/Display.h"
23 #include <GLES2/gl2.h>
24 #include <GLES2/gl2ext.h>
28 Context *getContext();
29 egl::Display *getDisplay();
35 GLint getClientVersion();
38 void error(GLenum errorCode);
41 const T &error(GLenum errorCode, const T &returnValue)
48 // libEGL dependencies
51 extern egl::Context *(*getCurrentContext)();
52 extern egl::Display *(*getCurrentDisplay)();
55 extern void *libEGL; // Handle to the libEGL module
57 #endif // LIBGLESV2_MAIN_H_