update sokol to latest

This commit is contained in:
2025-08-09 09:49:40 -04:00
parent 4ac28655b8
commit 8ed60cca33
58 changed files with 39 additions and 11 deletions

View File

@@ -1253,6 +1253,8 @@ resolve_px_scalar_size :: #force_inline proc "contextless" ( parser_info : Parse
return
}
// Helps with hinting, makes sure glyph quads are aligned to an integer pixel
// Best if used in combination with snap_glyph_position, maybe snap_glyph_height,and snap_glyph_width.
snap_normalized_position_to_view :: #force_inline proc "contextless" ( position, view : Vec2 ) -> (position_snapped : Vec2)
{
should_snap := cast(f32) i32(view.x > 0 && view.y > 0)