#include "types.h" struct snapshot; /* A game world */ struct context { int32_t snapshots_len; struct snapshot *snapshots; }; struct context *dp_physics_context_create(int32_t snapshots, int32_t players, int32_t balls); void dp_physics_context_free(struct context *); struct snapshot *dp_physics_context_get_snapshot(struct context *); void dp_physics_context_return_snapshot(struct context *, struct snapshot *); int dp_physics_tick(const struct snapshot *current, double delta, struct snapshot *next);