blob: 7a2ac4e16f15369797faa4d1a7bd65ba075a02e2 [file] [log] [blame]
Jamie Madillba319ba2018-12-29 10:29:33 -05001//
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 Madill624ce6a2019-01-04 14:17:24 -050014# if defined(ANGLE_PLATFORM_WINDOWS)
15# include "util/windows/wgl_loader_autogen.h"
16# endif // defined(ANGLE_PLATFORM_WINDOWS)
Jamie Madillba319ba2018-12-29 10:29:33 -050017#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 Madill624ce6a2019-01-04 14:17:24 -050026#endif // defined(ANGLE_USE_UTIL_LOADER)
Jamie Madillba319ba2018-12-29 10:29:33 -050027
28#endif // UTIL_GL_H_