Crate rokol[][src]

Wrapper of Sokol libraries (sokol_gfx.h and sokol_app.h)

Check out the examples and Learn OpenGL examples (WIP) to get more information. You can switch features to use Rust-SDL2 platform.

  • TIP: Sokol considers zero-initizialized structures to be in default state. It means Default::default is ensured to make sense!
  • TIP: use bytemuck to cast types to &[u8].

Status

Early in progress: currently only macOS + GlCore33 backend is considered

I’d do Learn OpenGL examples to make it better.

Re-exports

pub use rokol_ffi as ffi;

Modules

app

Application (FFI)

fons

FontStash integration for Rokol

gfx

Graphics (FFI)

glue

Glue code for using sokol_gfx.h on each platform