diff options
author | Jamie Madill <jmadill@chromium.org> | 2014-06-25 16:04:57 -0400 |
---|---|---|
committer | Jamie Madill <jmadill@chromium.org> | 2014-06-26 14:36:33 +0000 |
commit | f51639a4d10c6b31a813a8154ed2c489cc7e55f3 (patch) | |
tree | 2289a093169d70427befa99c0439c237353557cd /include | |
parent | d4a3a3171ce8b72123e4eaa85a3c5d2b3130878c (diff) | |
download | angle-f51639a4d10c6b31a813a8154ed2c489cc7e55f3.tar.gz |
Use a common include for GL headers.
A common place to define required GL includes gives us a nice
point to centralize GL customizations. In the header currently
are the basic GLES headers with extensions, and a define
carried over from desktop GL.
BUG=angle:466
Change-Id: I6fc61947b4514654ec21355a786904eac04656c0
Reviewed-on: https://chromium-review.googlesource.com/204936
Tested-by: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Zhenyao Mo <zmo@chromium.org>
Reviewed-by: Nicolas Capens <nicolascapens@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/angle_gl.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/angle_gl.h b/include/angle_gl.h new file mode 100644 index 00000000..d093f75e --- /dev/null +++ b/include/angle_gl.h @@ -0,0 +1,23 @@ +// +// Copyright (c) 2014 The ANGLE Project Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. +// +// angle_gl.h: +// Includes all necessary GL headers and definitions for ANGLE. +// + +#ifndef ANGLE_GL_H_ +#define ANGLE_GL_H_ + +#include "GLES2/gl2.h" +#include "GLES2/gl2ext.h" +#include "GLES3/gl3.h" +#include "GLES3/gl3ext.h" + +// The following enum is used in ANGLE, but is from desktop GL +#ifndef GL_SAMPLER_2D_RECT_ARB +#define GL_SAMPLER_2D_RECT_ARB 0x8B63 +#endif + +#endif // ANGLE_GL_H_ |