• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2015 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #ifndef GRAPHICS_TRANSLATION_UNDERLYING_APIS_ANGLE_GLES2_H_
17 #define GRAPHICS_TRANSLATION_UNDERLYING_APIS_ANGLE_GLES2_H_
18 
19 #define ANGLE_GLES2_INTERFACE "ANGLE_GLES2"
20 
21 #include "OpenGLESDispatch/gldefs.h"
22 #include "OpenGLESDispatch/gles_functions.h"
23 #include "OpenGLESDispatch/GLESv2Dispatch.h"
24 #include "KHR/khrplatform.h"
25 
26 // Define function pointer types.
27 #define GLES2_DISPATCH_DEFINE_TYPE(return_type,func_name,signature,callargs) \
28     typedef return_type (KHRONOS_APIENTRY * func_name ## _t) signature;
29 
30 LIST_GLES2_FUNCTIONS(GLES2_DISPATCH_DEFINE_TYPE,GLES2_DISPATCH_DEFINE_TYPE)
31 
32 struct ANGLE_GLES2 {
33 #define GLES2_DISPATCH_DECLARE_POINTER(return_type,func_name,signature,callargs) \
34         func_name ## _t func_name;
35     LIST_GLES2_FUNCTIONS(GLES2_DISPATCH_DECLARE_POINTER,
36                          GLES2_DISPATCH_DECLARE_POINTER)
37 };
38 
39 #endif  /* GRAPHICS_TRANSLATION_UNDERLYING_APIS_ANGLE_GLES2_H_ */
40