Draw distance slider (#44)

Helps render performance on integrated GPUs.
Added render culling for baked compounds.
This commit is contained in:
Erin Catto 2026-07-03 20:26:19 -07:00 • committed by GitHub
commit 1bec63c9ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 200 additions and 8 deletions

View file

@ -37,6 +37,14 @@ void SetShapeMaterial( b3ShapeId shapeId, Vec4 color, float metallic, float roug
void SetTransparentDynamic( bool enabled );
bool GetTransparentDynamic( void );
// View box for compound child culling, world space. Set once per frame before
// b3World_Draw. A compound then submits only the children overlapping this box
// instead of walking its entire child set.
void SetViewBounds( b3AABB bounds );
// Children appended in the last draw, and the total across drawn compounds.
int GetLastCompoundDrawStats( int* outTotal );
void SetSelectedBody( b3BodyId bodyId );
void SetSelectedShape( b3ShapeId shapeId );
void ClearSelection( void );