ae90b05ad829c0380e5e3f529a161a914c0125e6
[iec.git] / src / type3_AndroidCloud / anbox-master / src / anbox / graphics / emugl / RenderApi.h
1 /*
2 * Copyright (C) 2011-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
17 #ifndef RENDER_API_H
18 #define RENDER_API_H
19
20 #include <string>
21
22 #include <boost/filesystem/path.hpp>
23
24 #include "external/android-emugl/shared/emugl/common/logging.h"
25
26 typedef struct {
27   logger_t coarse;
28   logger_t fine;
29 } emugl_logger_struct;
30
31 namespace anbox {
32 namespace graphics {
33 namespace emugl {
34 struct GLLibrary {
35   enum class Type { EGL, GLESv1, GLESv2 };
36   Type type;
37   boost::filesystem::path path;
38 };
39
40 std::vector<GLLibrary> default_gl_libraries();
41
42 bool initialize(const std::vector<GLLibrary> &libs, emugl_logger_struct *log_funcs, logger_t crash_func);
43 }  // namespace emugl
44 }  // namespace graphics
45 }  // namespace anbox
46
47 #endif