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