TYPE3
[iec.git] / src / type3_AndroidCloud / anbox-master / external / android-emugl / host / include / OpenGLESDispatch / gles_functions.h
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/gles2_only_functions.h"
22 #include "OpenGLESDispatch/gles2_extensions_functions.h"
23 #include "OpenGLESDispatch/gles3_only_functions.h"
24
25 // As a special case, LIST_GLES3_ONLY_FUNCTIONS below uses the Y parameter
26 // instead of the X one, meaning that the corresponding functions are
27 // optional extensions. This is only because currently, the only GLESv3
28 // API we support is glGetStringi(), which is not always provided by
29 // host desktop GL drivers (though most do).
30 #define LIST_GLES_FUNCTIONS(X,Y) \
31     LIST_GLES_COMMON_FUNCTIONS(X) \
32     LIST_GLES_EXTENSIONS_FUNCTIONS(Y) \
33     LIST_GLES1_ONLY_FUNCTIONS(X) \
34     LIST_GLES1_EXTENSIONS_FUNCTIONS(Y) \
35     LIST_GLES2_ONLY_FUNCTIONS(X) \
36     LIST_GLES2_EXTENSIONS_FUNCTIONS(Y) \
37     LIST_GLES3_ONLY_FUNCTIONS(Y) \
38
39 #define LIST_GLES1_FUNCTIONS(X, Y) \
40     LIST_GLES_COMMON_FUNCTIONS(X) \
41     LIST_GLES_EXTENSIONS_FUNCTIONS(Y) \
42     LIST_GLES1_ONLY_FUNCTIONS(X) \
43     LIST_GLES1_EXTENSIONS_FUNCTIONS(Y) \
44
45 #define LIST_GLES2_FUNCTIONS(X, Y) \
46     LIST_GLES_COMMON_FUNCTIONS(X) \
47     LIST_GLES_EXTENSIONS_FUNCTIONS(Y) \
48     LIST_GLES2_ONLY_FUNCTIONS(X) \
49     LIST_GLES2_EXTENSIONS_FUNCTIONS(Y) \
50