• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2016 The Android Open Source Project
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #pragma once
16 
17 #include "OpenGLESDispatch/gles_common_functions.h"
18 #include "OpenGLESDispatch/gles_extensions_functions.h"
19 #include "OpenGLESDispatch/gles1_only_functions.h"
20 #include "OpenGLESDispatch/gles1_extensions_functions.h"
21 #include "OpenGLESDispatch/gles12tr.h"
22 #include "OpenGLESDispatch/gles2_only_functions.h"
23 #include "OpenGLESDispatch/gles2_extensions_functions.h"
24 #include "OpenGLESDispatch/gles3_only_functions.h"
25 #include "OpenGLESDispatch/gles3_extensions_functions.h"
26 #include "OpenGLESDispatch/gles31_only_functions.h"
27 #include "OpenGLESDispatch/gles32_only_functions.h"
28 
29 // As a special case, LIST_GLES3_ONLY_FUNCTIONS below uses the Y parameter
30 // instead of the X one, meaning that the corresponding functions are
31 // optional extensions. For example, glGetStringi is part of GLESv3
32 // and is not always provided by host desktop GL drivers.
33 // If there are any more GLES3 functions on top of that, they're assumed
34 // to extend the GLES2 driver.
35 #define LIST_GLES_FUNCTIONS(X,Y) \
36     LIST_GLES_COMMON_FUNCTIONS(X) \
37     LIST_GLES_EXTENSIONS_FUNCTIONS(Y) \
38     LIST_GLES1_ONLY_FUNCTIONS(X) \
39     LIST_GLES1_EXTENSIONS_FUNCTIONS(Y) \
40     LIST_GLES2_ONLY_FUNCTIONS(X) \
41     LIST_GLES2_EXTENSIONS_FUNCTIONS(Y) \
42     LIST_GLES3_ONLY_FUNCTIONS(Y) \
43     LIST_GLES3_EXTENSIONS_FUNCTIONS(Y) \
44     LIST_GLES31_ONLY_FUNCTIONS(Y) \
45     LIST_GLES32_ONLY_FUNCTIONS(Y) \
46 
47 #define LIST_GLES1_FUNCTIONS(X, Y) \
48     LIST_GLES_COMMON_FUNCTIONS(X) \
49     LIST_GLES_EXTENSIONS_FUNCTIONS(Y) \
50     LIST_GLES1_ONLY_FUNCTIONS(X) \
51     LIST_GLES1_EXTENSIONS_FUNCTIONS(Y) \
52 
53 #define LIST_GLES2_FUNCTIONS(X, Y) \
54     LIST_GLES_COMMON_FUNCTIONS(X) \
55     LIST_GLES_EXTENSIONS_FUNCTIONS(Y) \
56     LIST_GLES2_ONLY_FUNCTIONS(X) \
57     LIST_GLES2_EXTENSIONS_FUNCTIONS(Y) \
58     LIST_GLES3_ONLY_FUNCTIONS(Y) \
59     LIST_GLES3_EXTENSIONS_FUNCTIONS(Y) \
60     LIST_GLES31_ONLY_FUNCTIONS(Y) \
61     LIST_GLES32_ONLY_FUNCTIONS(Y) \
62 
63