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
initGL30Core(Functions * gl,const FunctionLoader * loader)50 void initGL30Core (Functions* gl, const FunctionLoader* loader)
51 {
52 #include "glwInitGL30.inl"
53 }
54
initGL31Core(Functions * gl,const FunctionLoader * loader)55 void initGL31Core (Functions* gl, const FunctionLoader* loader)
56 {
57 #include "glwInitGL31.inl"
58 }
59
initGL32Core(Functions * gl,const FunctionLoader * loader)60 void initGL32Core (Functions* gl, const FunctionLoader* loader)
61 {
62 #include "glwInitGL32.inl"
63 }
64
initGL33Core(Functions * gl,const FunctionLoader * loader)65 void initGL33Core (Functions* gl, const FunctionLoader* loader)
66 {
67 #include "glwInitGL33.inl"
68 }
69
initGL40Core(Functions * gl,const FunctionLoader * loader)70 void initGL40Core (Functions* gl, const FunctionLoader* loader)
71 {
72 #include "glwInitGL40.inl"
73 }
74
initGL41Core(Functions * gl,const FunctionLoader * loader)75 void initGL41Core (Functions* gl, const FunctionLoader* loader)
76 {
77 #include "glwInitGL41.inl"
78 }
79
initGL42Core(Functions * gl,const FunctionLoader * loader)80 void initGL42Core (Functions* gl, const FunctionLoader* loader)
81 {
82 #include "glwInitGL42.inl"
83 }
84
initGL43Core(Functions * gl,const FunctionLoader * loader)85 void initGL43Core (Functions* gl, const FunctionLoader* loader)
86 {
87 #include "glwInitGL43.inl"
88 }
89
initGL44Core(Functions * gl,const FunctionLoader * loader)90 void initGL44Core (Functions* gl, const FunctionLoader* loader)
91 {
92 #include "glwInitGL44.inl"
93 }
94
initExtensionsGL(Functions * gl,const FunctionLoader * loader,int numExtensions,const char * const * extensions)95 void initExtensionsGL (Functions* gl, const FunctionLoader* loader, int numExtensions, const char* const* extensions)
96 {
97 using std::string;
98 using std::set;
99
100 const set<string> extSet(extensions, extensions+numExtensions);
101
102 #include "glwInitExtGL.inl"
103
104 }
105
initExtensionsES(Functions * gl,const FunctionLoader * loader,int numExtensions,const char * const * extensions)106 void initExtensionsES (Functions* gl, const FunctionLoader* loader, int numExtensions, const char* const* extensions)
107 {
108 using std::string;
109 using std::set;
110
111 const set<string> extSet(extensions, extensions+numExtensions);
112
113 #include "glwInitExtES.inl"
114
115 }
116
117 } // glw
118