Follow cam (#107)

- follow cam in replay viewer
- world text with halo
- fixed sensor crash
- sensor visitors must now be convex
This commit is contained in:
Erin Catto 2026-07-29 22:14:26 -07:00 • committed by GitHub
commit 3fc20f5b45
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
27 changed files with 7450 additions and 127 deletions

View file

@ -99,7 +99,6 @@ static void OnInit( void )
#if defined( _WIN32 )
timeBeginPeriod( 1 );
#endif
const sg_environment env = sglue_environment();
InitRenderer( &env );
InitUI( &env, OnDrawUI );
@ -214,11 +213,15 @@ static void OnEvent( const sapp_event* e )
// Ctrl+O opens the fuzzy picker. Force the UI visible so it shows.
s_context.showUI = true;
s_context.openSamplePicker = true;
break;
}
else
{
s_context.singleStep += ( mods & SAPP_MODIFIER_SHIFT ) ? 5 : 1;
}
s_context.sample->Keyboard( e->key_code, ACTION_PRESS, mods );
break;
// Step forward. Backward is , and only a sample that can rewind
// handles it, so that key falls through to the sample.
case KEY_PERIOD:
s_context.singleStep += ( mods & SAPP_MODIFIER_SHIFT ) ? 5 : 1;
break;
case SAPP_KEYCODE_P: