Edit

kc3-lang/angle/include/angle_gl.h

Branch :

  • Show log

    Commit

  • Author : Jamie Madill
    Date : 2014-06-25 16:04:57
    Hash : f51639a4
    Message : 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>

  • include/angle_gl.h
  • //
    // 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_