Jamie Madill | ba319ba | 2018-12-29 10:29:33 -0500 | [diff] [blame] | 1 | // |
| 2 | // Copyright 2018 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 | // util_gl.h: Includes the right GL/EGL headers for static/shared link. |
| 7 | |
| 8 | #ifndef UTIL_GL_H_ |
| 9 | #define UTIL_GL_H_ |
| 10 | |
| 11 | #if defined(ANGLE_USE_UTIL_LOADER) |
| 12 | # include "util/egl_loader_autogen.h" |
| 13 | # include "util/gles_loader_autogen.h" |
Jamie Madill | 624ce6a | 2019-01-04 14:17:24 -0500 | [diff] [blame] | 14 | # if defined(ANGLE_PLATFORM_WINDOWS) |
| 15 | # include "util/windows/wgl_loader_autogen.h" |
| 16 | # endif // defined(ANGLE_PLATFORM_WINDOWS) |
Jamie Madill | ba319ba | 2018-12-29 10:29:33 -0500 | [diff] [blame] | 17 | #else |
| 18 | |
| 19 | # if !defined(GL_GLES_PROTOTYPES) |
| 20 | # error Config error. Should either be using the ANGLE GL loader or header prototypes. |
| 21 | # endif // !defined(GL_GLES_PROTOTYPES) |
| 22 | |
| 23 | # include <EGL/egl.h> |
| 24 | # include <EGL/eglext.h> |
| 25 | # include "angle_gl.h" |
Jamie Madill | 624ce6a | 2019-01-04 14:17:24 -0500 | [diff] [blame] | 26 | #endif // defined(ANGLE_USE_UTIL_LOADER) |
Jamie Madill | ba319ba | 2018-12-29 10:29:33 -0500 | [diff] [blame] | 27 | |
| 28 | #endif // UTIL_GL_H_ |