• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright 2020 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 //
6 
7 // FunctionsEAGL.h: Exposing the soft-linked EAGL interface.
8 
9 #ifndef EAGL_FUNCTIONS_H_
10 #define EAGL_FUNCTIONS_H_
11 
12 #include "common/platform.h"
13 
14 #if defined(ANGLE_ENABLE_EAGL)
15 
16 // OpenGL ES is technically deprecated on iOS. Silence associated warnings.
17 #    define GLES_SILENCE_DEPRECATION
18 
19 #    import <OpenGLES/EAGL.h>
20 #    import <OpenGLES/EAGLDrawable.h>
21 #    import <OpenGLES/EAGLIOSurface.h>
22 
23 #    include "common/apple/SoftLinking.h"
24 
25 SOFT_LINK_FRAMEWORK_HEADER(OpenGLES)
26 
27 SOFT_LINK_CLASS_HEADER(EAGLContext)
28 
29 #endif  // defined(ANGLE_ENABLE_EAGL)
30 
31 #endif  // CGL_FUNCTIONS_H_
32