1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//! WebGL2 shim bindings for `wasm32-unknown-unknown`.
//!
//! `glemu` keeps Emscripten-style integer object IDs mapped to `web_sys`
//! WebGL objects, exposes proc-address lookup helpers for proc-table driven GL
//! consumers, and provides a typed [`Context`] API for direct WebGL2 use.
//!
//! Public API:
//! - when the `api` feature is enabled: [`Context`] plus typed handle wrappers
//! such as [`Buffer`] and [`Texture`]
//! - [`ContextId`]
//! - when the `raw-proc` feature is enabled: [`get_proc_address`]
//! - [`register_gl_context`], [`set_gl_context`], [`drop_gl_context`], and
//! [`current_context_id`]
//!
//! Feature flags:
//! - `api`: enables the typed [`Context`] API
//! - `raw-proc`: enables proc-table lookup via [`get_proc_address`]
//! - `image-data`: enables `ImageData` texture upload helpers
//! - `dom-uploads`: enables `ImageBitmap` / canvas / image / video upload helpers
//! - `video-frame`: enables `VideoFrame` upload helpers
//!
//! Disable default features and opt back in selectively to reduce `web-sys`
//! surface area in consumer wasm binaries.
//!
//! The raw implementation modules are internal details.
//!
//! See `examples/wasm-pack-demo` for a minimal browser demo built with
//! `wasm-pack`.
pub use ;
pub use get_proc_address;
pub use ;
pub use ContextId;