Add initial prototype.

This commit is contained in:
Rod Kay
2022-07-31 17:34:54 +10:00
commit 54a53b2ac0
1421 changed files with 358874 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
with
bullet_physics.Space,
box2d_physics .Space;
package body physics.Forge
is
----------
--- Space
--
function new_Space (Kind : in space_Kind) return Space.view
is
Self : Space.view;
begin
case Kind
is
when Bullet =>
Self := Space.view' (new bullet_physics.Space.item' (bullet_physics.Space.to_Space));
when Box2d =>
Self := Space.view' (new box2d_physics.Space.item' (box2d_physics.Space.to_Space));
end case;
return Self;
end new_Space;
end physics.Forge;