Flutter Engine
The Flutter Engine
|
#include "include/gpu/gl/GrGLAssembleInterface.h"
#include "include/gpu/gl/GrGLInterface.h"
#include "src/gpu/ganesh/gl/GrGLUtil.h"
#include <GLFW/glfw3.h>
Go to the source code of this file.
Functions | |
static GrGLFuncPtr | glfw_get (void *ctx, const char name[]) |
sk_sp< const GrGLInterface > | GrGLMakeNativeInterface () |
|
static |
Definition at line 15 of file GrGLMakeNativeInterface_glfw.cpp.
sk_sp< const GrGLInterface > GrGLMakeNativeInterface | ( | ) |
Rather than depend on platform-specific GL headers and libraries, we require the client to provide a struct of GL function pointers. This struct can be specified per-GrContext as a parameter to GrContext::MakeGL. If no interface is passed to MakeGL then a default GL interface is created using GrGLMakeNativeInterface(). If this returns nullptr then GrContext::MakeGL() will fail.
The implementation of GrGLMakeNativeInterface is platform-specific. Several implementations have been provided (for GLX, WGL, EGL, etc), along with an implementation that simply returns nullptr. Clients should select the most appropriate one to build.
Definition at line 21 of file GrGLMakeNativeInterface_glfw.cpp.