Draw distance slider (#44)
Helps render performance on integrated GPUs. Added render culling for baked compounds.
This commit is contained in:
parent
655799893a
commit
1bec63c9ee
11 changed files with 200 additions and 8 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue