Flutter Engine
The Flutter Engine
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
14namespace impeller {
15namespace 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///
23std::function<void*(const char*)> CreateProcAddressResolver();
24
25#define IMPELLER_LOG_EGL_ERROR LogEGLError(__FILE__, __LINE__);
26
27void LogEGLError(const char* file, int line);
28
29} // namespace egl
30} // namespace impeller
31
32#endif // FLUTTER_IMPELLER_TOOLKIT_EGL_EGL_H_
Dart_NativeFunction function
Definition: fuchsia.cc:51
void LogEGLError(const char *file, int line)
Definition: egl.cc:54
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