1 /*-------------------------------------------------------------------------
2  * drawElements Quality Program OpenGL 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 Function table initialization.
22  *//*--------------------------------------------------------------------*/
23 
24 #include "glwInitFunctions.hpp"
25 #include "deSTLUtil.hpp"
26 
27 #include <string>
28 #include <set>
29 
30 namespace glw
31 {
32 
33 // \todo [2014-03-19 pyry] Replace this with more generic system based on upstream XML spec desc.
34 
initES20(Functions * gl,const FunctionLoader * loader)35 void initES20 (Functions* gl, const FunctionLoader* loader)
36 {
37 #include "glwInitES20.inl"
38 }
39 
initES30(Functions * gl,const FunctionLoader * loader)40 void initES30 (Functions* gl, const FunctionLoader* loader)
41 {
42 #include "glwInitES30.inl"
43 }
44 
initES31(Functions * gl,const FunctionLoader * loader)45 void initES31 (Functions* gl, const FunctionLoader* loader)
46 {
47 #include "glwInitES31.inl"
48 }
49 
initES32(Functions * gl,const FunctionLoader * loader)50 void initES32 (Functions* gl, const FunctionLoader* loader)
51 {
52 #include "glwInitES32.inl"
53 }
54 
initGL30Core(Functions * gl,const FunctionLoader * loader)55 void initGL30Core (Functions* gl, const FunctionLoader* loader)
56 {
57 #include "glwInitGL30.inl"
58 }
59 
initGL31Core(Functions * gl,const FunctionLoader * loader)60 void initGL31Core (Functions* gl, const FunctionLoader* loader)
61 {
62 #include "glwInitGL31.inl"
63 }
64 
initGL32Core(Functions * gl,const FunctionLoader * loader)65 void initGL32Core (Functions* gl, const FunctionLoader* loader)
66 {
67 #include "glwInitGL32.inl"
68 }
69 
initGL33Core(Functions * gl,const FunctionLoader * loader)70 void initGL33Core (Functions* gl, const FunctionLoader* loader)
71 {
72 #include "glwInitGL33.inl"
73 }
74 
initGL40Core(Functions * gl,const FunctionLoader * loader)75 void initGL40Core (Functions* gl, const FunctionLoader* loader)
76 {
77 #include "glwInitGL40.inl"
78 }
79 
initGL41Core(Functions * gl,const FunctionLoader * loader)80 void initGL41Core (Functions* gl, const FunctionLoader* loader)
81 {
82 #include "glwInitGL41.inl"
83 }
84 
initGL42Core(Functions * gl,const FunctionLoader * loader)85 void initGL42Core (Functions* gl, const FunctionLoader* loader)
86 {
87 #include "glwInitGL42.inl"
88 }
89 
initGL43Core(Functions * gl,const FunctionLoader * loader)90 void initGL43Core (Functions* gl, const FunctionLoader* loader)
91 {
92 #include "glwInitGL43.inl"
93 }
94 
initGL44Core(Functions * gl,const FunctionLoader * loader)95 void initGL44Core (Functions* gl, const FunctionLoader* loader)
96 {
97 #include "glwInitGL44.inl"
98 }
99 
initExtensionsGL(Functions * gl,const FunctionLoader * loader,int numExtensions,const char * const * extensions)100 void initExtensionsGL (Functions* gl, const FunctionLoader* loader, int numExtensions, const char* const* extensions)
101 {
102 	using std::string;
103 	using std::set;
104 
105 	const set<string> extSet(extensions, extensions+numExtensions);
106 
107 #include "glwInitExtGL.inl"
108 
109 }
110 
initExtensionsES(Functions * gl,const FunctionLoader * loader,int numExtensions,const char * const * extensions)111 void initExtensionsES (Functions* gl, const FunctionLoader* loader, int numExtensions, const char* const* extensions)
112 {
113 	using std::string;
114 	using std::set;
115 
116 	const set<string> extSet(extensions, extensions+numExtensions);
117 
118 #include "glwInitExtES.inl"
119 
120 }
121 
122 } // glw
123