Debian Codegraph @

src/lib.rs

raw symbols SCIP
1 // Copyright 2015 Brendan Zabarauskas and the gl-rs developers
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 //! This crates contains the sources of the official OpenGL repository.
16
17 // NOTE: if any new files are added to here, ensue they are also covered
18 // in the `include` section of the `Cargo.toml`.
19
20 /// The contents of [`gl.xml`](https://github.com/KhronosGroup/OpenGL-Registry/blob/master/xml/gl.xml)
21 pub const GL_XML: &'static [u8] = include_bytes!("../api/xml/gl.xml");
22
23 /// The contents of [`egl.xml`](https://github.com/KhronosGroup/EGL-Registry/blob/master/api/egl.xml)
24 pub const EGL_XML: &'static [u8] = include_bytes!("../api_egl/api/egl.xml");
25
26 /// The contents of [`wgl.xml`](https://github.com/KhronosGroup/OpenGL-Registry/blob/master/xml/wgl.xml)
27 pub const WGL_XML: &'static [u8] = include_bytes!("../api/xml/wgl.xml");
28
29 /// The contents of [`glx.xml`](https://github.com/KhronosGroup/OpenGL-Registry/blob/master/xml/glx.xml)
30 pub const GLX_XML: &'static [u8] = include_bytes!("../api/xml/glx.xml");
31
32 /// The contents of [`gl_angle_ext.xml`](https://github.com/google/angle/blob/master/scripts/gl_angle_ext.xml)
33 pub const GL_ANGLE_EXT_XML: &'static [u8] = include_bytes!("../api_angle/scripts/gl_angle_ext.xml");
34
35 /// The contents of [`egl_angle_ext.xml`](https://github.com/google/angle/blob/master/scripts/egl_angle_ext.xml)
36 pub const EGL_ANGLE_EXT_XML: &'static [u8] = include_bytes!("../api_angle/scripts/egl_angle_ext.xml");
37
38 /// The contents of [`webgl.idl`](https://github.com/KhronosGroup/WebGL/blob/master/specs/latest/1.0/webgl.idl)
39 pub const WEBGL_IDL: &'static [u8] = include_bytes!("../api_webgl/specs/latest/1.0/webgl.idl");
40
41 /// The contents of [`webgl2.idl`](https://github.com/KhronosGroup/WebGL/blob/master/specs/latest/2.0/webgl2.idl)
42 pub const WEBGL2_IDL: &'static [u8] = include_bytes!("../api_webgl/specs/latest/2.0/webgl2.idl");
43
44 /// The contents of the WebGL extension XML files
45 /// These are discovered via a build script to avoid having to list each extension by name.
46 pub const WEBGL_EXT_XML: &'static [&'static [u8]] =
47 include!(concat!(env!("OUT_DIR"), "/webgl_exts.rs"));