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 | |
Yuly Novikov | 5fe7c5b | 2019-01-17 12:16:34 -0500 | [diff] [blame^] | 11 | #include "common/platform.h" |
| 12 | |
Jamie Madill | ba319ba | 2018-12-29 10:29:33 -0500 | [diff] [blame] | 13 | #if defined(ANGLE_USE_UTIL_LOADER) |
| 14 | # include "util/egl_loader_autogen.h" |
| 15 | # include "util/gles_loader_autogen.h" |
Jamie Madill | 624ce6a | 2019-01-04 14:17:24 -0500 | [diff] [blame] | 16 | # if defined(ANGLE_PLATFORM_WINDOWS) |
| 17 | # include "util/windows/wgl_loader_autogen.h" |
| 18 | # endif // defined(ANGLE_PLATFORM_WINDOWS) |
Jamie Madill | ba319ba | 2018-12-29 10:29:33 -0500 | [diff] [blame] | 19 | #else |
| 20 | |
| 21 | # if !defined(GL_GLES_PROTOTYPES) |
| 22 | # error Config error. Should either be using the ANGLE GL loader or header prototypes. |
| 23 | # endif // !defined(GL_GLES_PROTOTYPES) |
| 24 | |
| 25 | # include <EGL/egl.h> |
| 26 | # include <EGL/eglext.h> |
| 27 | # include "angle_gl.h" |
Jamie Madill | 624ce6a | 2019-01-04 14:17:24 -0500 | [diff] [blame] | 28 | #endif // defined(ANGLE_USE_UTIL_LOADER) |
Jamie Madill | ba319ba | 2018-12-29 10:29:33 -0500 | [diff] [blame] | 29 | |
| 30 | #endif // UTIL_GL_H_ |