diff options
author | Imanol Fernandez <mortimergoro@gmail.com> | 2017-05-16 11:14:23 +0200 |
---|---|---|
committer | Imanol Fernandez <mortimergoro@gmail.com> | 2017-05-18 18:44:07 +0200 |
commit | 32e23c4db4a80f8ebe01bead141c5ca04bc6b215 (patch) | |
tree | 3062608b9ac6441f73d6507ebe4d25100e2676d1 /components/script/dom/webgl_extensions/mod.rs | |
parent | ac99a48aeaa184d3acdb39d249636a140c4b7393 (diff) | |
download | servo-32e23c4db4a80f8ebe01bead141c5ca04bc6b215.tar.gz servo-32e23c4db4a80f8ebe01bead141c5ca04bc6b215.zip |
Implement WebGL extensions.
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; |