| Flutter Impeller |

egl.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef FLUTTER_IMPELLER_TOOLKIT_EGL_EGL_H_
6 #define FLUTTER_IMPELLER_TOOLKIT_EGL_EGL_H_
7
8 #include <EGL/egl.h>
9 #define EGL_EGLEXT_PROTOTYPES
10 #include <EGL/eglext.h>
11
12 #include <functional>
13
14 namespace impeller {
15 namespace egl {
16
17 //------------------------------------------------------------------------------
18 /// @brief Creates a proc address resolver that resolves function pointers
19 /// to EGL and OpenGL (ES) procs.
20 ///
21 /// @return The resolver if one can be created.
22 ///
23 std::function<void*(const char*)> CreateProcAddressResolver();
24
25 #define IMPELLER_LOG_EGL_ERROR LogEGLError(__FILE__, __LINE__);
26
27 void LogEGLError(const char* file, int line);
28
29 } // namespace egl
30 } // namespace impeller
31
32 #endif // FLUTTER_IMPELLER_TOOLKIT_EGL_EGL_H_
impeller::egl::LogEGLError
void LogEGLError(const char *file, int line)
Definition: egl.cc:54
impeller::egl::CreateProcAddressResolver
std::function< void *(const char *)> CreateProcAddressResolver()
Creates a proc address resolver that resolves function pointers to EGL and OpenGL (ES) procs.
Definition: egl.cc:12
impeller
Definition: allocation.cc:12