• 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 
28 // As a special case, LIST_GLES3_ONLY_FUNCTIONS below uses the Y parameter
29 // instead of the X one, meaning that the corresponding functions are
30 // optional extensions. For example, glGetStringi is part of GLESv3
31 // and is not always provided by host desktop GL drivers.
32 // If there are any more GLES3 functions on top of that, they're assumed
33 // to extend the GLES2 driver.
34 #define LIST_GLES_FUNCTIONS(X,Y) \
35     LIST_GLES_COMMON_FUNCTIONS(X) \
36     LIST_GLES_EXTENSIONS_FUNCTIONS(Y) \
37     LIST_GLES1_ONLY_FUNCTIONS(X) \
38     LIST_GLES1_EXTENSIONS_FUNCTIONS(Y) \
39     LIST_GLES2_ONLY_FUNCTIONS(X) \
40     LIST_GLES2_EXTENSIONS_FUNCTIONS(Y) \
41     LIST_GLES3_ONLY_FUNCTIONS(Y) \
42     LIST_GLES3_EXTENSIONS_FUNCTIONS(Y) \
43     LIST_GLES31_ONLY_FUNCTIONS(Y) \
44 
45 #define LIST_GLES1_FUNCTIONS(X, Y) \
46     LIST_GLES_COMMON_FUNCTIONS(X) \
47     LIST_GLES_EXTENSIONS_FUNCTIONS(Y) \
48     LIST_GLES1_ONLY_FUNCTIONS(X) \
49     LIST_GLES1_EXTENSIONS_FUNCTIONS(Y) \
50 
51 #define LIST_GLES2_FUNCTIONS(X, Y) \
52     LIST_GLES_COMMON_FUNCTIONS(X) \
53     LIST_GLES_EXTENSIONS_FUNCTIONS(Y) \
54     LIST_GLES2_ONLY_FUNCTIONS(X) \
55     LIST_GLES2_EXTENSIONS_FUNCTIONS(Y) \
56     LIST_GLES3_ONLY_FUNCTIONS(Y) \
57     LIST_GLES3_EXTENSIONS_FUNCTIONS(Y) \
58     LIST_GLES31_ONLY_FUNCTIONS(Y) \
59 
60