• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*-------------------------------------------------------------------------
2  * drawElements Quality Program EGL Utilities
3  * ------------------------------------------
4  *
5  * Copyright 2014 The Android Open Source Project
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  *//*!
20  * \file
21  * \brief EGL API Library.
22  *//*--------------------------------------------------------------------*/
23 
24 #include "eglwWrapper.hpp"
25 #include "eglwLibrary.hpp"
26 
27 namespace eglw
28 {
29 static const eglw::Library*   s_library     = DE_NULL;
30 
setCurrentThreadLibrary(const eglw::Library * egl)31 void setCurrentThreadLibrary (const eglw::Library* egl)
32 {
33 	s_library = egl;
34 }
35 
getCurrentThreadLibrary(void)36 inline const eglw::Library* getCurrentThreadLibrary (void)
37 {
38 	return s_library;
39 }
40 
41 DE_BEGIN_EXTERN_C
42 
43 #include "eglwImpl.inl"
44 #include "eglwImplExt.inl"
45 
46 DE_END_EXTERN_C
47 }
48