Revision control

Copy as Markdown

Other Tools

// Copyright 2015 Brendan Zabarauskas and the gl-rs developers
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//! This crates contains the sources of the official OpenGL repository.
// NOTE: if any new files are added to here, ensue they are also covered
// in the `include` section of the `Cargo.toml`.
pub const GL_XML: &'static [u8] = include_bytes!("../api/xml/gl.xml");
pub const EGL_XML: &'static [u8] = include_bytes!("../api_egl/api/egl.xml");
pub const WGL_XML: &'static [u8] = include_bytes!("../api/xml/wgl.xml");
pub const GLX_XML: &'static [u8] = include_bytes!("../api/xml/glx.xml");
pub const GL_ANGLE_EXT_XML: &'static [u8] = include_bytes!("../api_angle/scripts/gl_angle_ext.xml");
pub const EGL_ANGLE_EXT_XML: &'static [u8] = include_bytes!("../api_angle/scripts/egl_angle_ext.xml");
pub const WEBGL_IDL: &'static [u8] = include_bytes!("../api_webgl/specs/latest/1.0/webgl.idl");
pub const WEBGL2_IDL: &'static [u8] = include_bytes!("../api_webgl/specs/latest/2.0/webgl2.idl");
/// The contents of the WebGL extension XML files
/// These are discovered via a build script to avoid having to list each extension by name.
pub const WEBGL_EXT_XML: &'static [&'static [u8]] =
include!(concat!(env!("OUT_DIR"), "/webgl_exts.rs"));