Expand description
Wrapper of Sokol libraries
§Features (specified in Cargo.toml)
Example settings:
rokol = { features = ["sdl", "impl-gfx", "glcore33", "fontstash"] }impl-app: implementssokol_app.hand enablesappmodulesdl2: generatesgluecode forsdl2impl-gfx: implementssokol_gfx.hand enablesgfxmoduleglcore33: uses OpenGL backendmetal: uses Metal backendd3d11: uses DirectX11 backend
fontstash: implementsfontstash.hand enablesfonsmodule
§Tips
- Checkout The Brain Dump
- Sokol considers zero-initizialized structures to be in default state. It means
Default::defaultis ensured to make sense!
- Sokol considers zero-initizialized structures to be in default state. It means
- use
bytemuckto cast types to&[u8].
Re-exports§
pub use rokol_ffi as ffi;