Doxygen comments (#12)

- organized headers.
- added comments to headers.
- fixed a solver determinism bug.
- removed some un-used math functions
This commit is contained in:
Erin Catto 2026-06-10 13:21:14 -07:00 • committed by GitHub
commit d8fbeb444e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
53 changed files with 8973 additions and 1812 deletions

View file

@ -31,6 +31,8 @@
#include <string.h>
#include <thread>
#define INFO_PANEL_WIDTH 16.0f
// Load a file. You must free the character array.
static char* ReadFile( int& size, const char* filename )
{
@ -498,7 +500,7 @@ void Sample::DrawMetrics()
}
float fontSize = ImGui::GetFontSize();
float menuWidth = 14.0f * fontSize;
float menuWidth = INFO_PANEL_WIDTH * fontSize;
float drawerHeight = 16.0f * fontSize;
float drawerWidth = m_camera->m_width - menuWidth - 1.5f * fontSize;
@ -1739,7 +1741,7 @@ static void DrawInfoPanel( SampleContext* context )
{
const SampleEntry& entry = g_sampleEntries[context->sampleIndex];
float fontSize = ImGui::GetFontSize();
float menuWidth = 16.0f * fontSize;
float menuWidth = INFO_PANEL_WIDTH * fontSize;
float menuBarHeight = ImGui::GetFrameHeight();
// Full-height panel pinned under the menu bar at the right edge, matching Box2D.