Home | History | Annotate | Download | only in wrapper
      1 #ifndef _EGLWFUNCTIONS_HPP
      2 #define _EGLWFUNCTIONS_HPP
      3 /*-------------------------------------------------------------------------
      4  * drawElements Quality Program EGL Utilities
      5  * ------------------------------------------
      6  *
      7  * Copyright 2014 The Android Open Source Project
      8  *
      9  * Licensed under the Apache License, Version 2.0 (the "License");
     10  * you may not use this file except in compliance with the License.
     11  * You may obtain a copy of the License at
     12  *
     13  *      http://www.apache.org/licenses/LICENSE-2.0
     14  *
     15  * Unless required by applicable law or agreed to in writing, software
     16  * distributed under the License is distributed on an "AS IS" BASIS,
     17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     18  * See the License for the specific language governing permissions and
     19  * limitations under the License.
     20  *
     21  *//*!
     22  * \file
     23  * \brief EGL API Functions.
     24  *//*--------------------------------------------------------------------*/
     25 
     26 #include "eglwDefs.hpp"
     27 
     28 namespace eglw
     29 {
     30 
     31 // Function typedefs.
     32 extern "C"
     33 {
     34 #include "eglwFunctionTypes.inl"
     35 }
     36 
     37 class Functions
     38 {
     39 public:
     40 	// Function definitions:
     41 	// eglInitializeFunc	initialize;
     42 #include "eglwFunctions.inl"
     43 
     44 	Functions (void);
     45 };
     46 
     47 typedef EGLW_APICALL void (EGLW_APIENTRY* GenericFuncType) (void);
     48 
     49 class FunctionLoader
     50 {
     51 public:
     52 	virtual GenericFuncType		get		(const char* name) const = 0;
     53 };
     54 
     55 void	initCore		(Functions* dst, const FunctionLoader* loader);
     56 void	initExtensions	(Functions* dst, const FunctionLoader* loader);
     57 
     58 } // eglw
     59 
     60 #endif // _EGLWFUNCTIONS_HPP
     61