Crate rokol[−][src]
Expand description
Wrapper of Sokol libraries
Features (specified in Cargo.toml
)
Example settings:
rokol = { features = ["sdl", "impl-gfx", "glcore33", "fontstash"] }
impl-app
: implementssokol_app.h
and enablesapp
modulesdl2
: generatesglue
code forsdl2
impl-gfx
: implementssokol_gfx.h
and enablesgfx
moduleglcore33
: uses OpenGL backendmetal
: uses Metal backendd3d11
: uses DirectX11 backend
fontstash
: implementsfontstash.h
and enablesfons
module
Tips
- Checkout The Brain Dump
- Sokol considers zero-initizialized structures to be in default state. It means
Default::default
is ensured to make sense!
- Sokol considers zero-initizialized structures to be in default state. It means
- use
bytemuck
to cast types to&[u8]
.
Re-exports
pub use rokol_ffi as ffi;