diff options
Diffstat (limited to 'components/script/dom/webgl_extensions/mod.rs')
-rw-r--r-- | components/script/dom/webgl_extensions/mod.rs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/components/script/dom/webgl_extensions/mod.rs b/components/script/dom/webgl_extensions/mod.rs new file mode 100644 index 00000000000..c9a468274a3 --- /dev/null +++ b/components/script/dom/webgl_extensions/mod.rs @@ -0,0 +1,25 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +pub mod ext; +mod extension; +mod extensions; +mod wrapper; + +// Some extra constants not exposed in WebGLRenderingContext constants +pub mod ext_constants { + pub const ALPHA16F_ARB: u32 = 0x881C; + pub const ALPHA32F_ARB: u32 = 0x8816; + pub const LUMINANCE16F_ARB: u32 = 0x881E; + pub const LUMINANCE32F_ARB: u32 = 0x8818; + pub const LUMINANCE_ALPHA16F_ARB: u32 = 0x881F; + pub const LUMINANCE_ALPHA32F_ARB: u32 = 0x8819; + pub const RGBA16F: u32 = 0x881A; + pub const RGB16F: u32 = 0x881B; + pub const RGBA32F: u32 = 0x8814; + pub const RGB32F: u32 = 0x8815; +} + +pub use self::extension::WebGLExtension; +pub use self::extensions::WebGLExtensions; |