Expand description
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
apifeature is enabled:Contextplus typed handle wrappers such asBufferandTexture ContextId- when the
raw-procfeature is enabled:get_proc_address register_gl_context,set_gl_context,drop_gl_context, andcurrent_context_id
Feature flags:
api: enables the typedContextAPIraw-proc: enables proc-table lookup viaget_proc_addressimage-data: enablesImageDatatexture upload helpersdom-uploads: enablesImageBitmap/ canvas / image / video upload helpersvideo-frame: enablesVideoFrameupload 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.
Structs§
- Buffer
- Context
- Context
Id - Framebuffer
- Program
- Query
- Renderbuffer
- Sampler
- Shader
- Texture
- Transform
Feedback - Vertex
Array