gel.demos: Update code to use new openGL updates.
This commit is contained in:
@@ -41,11 +41,10 @@ is
|
||||
half_Extents => [5.0, 0.25, 5.0]));
|
||||
|
||||
the_Ground : constant gel.Sprite.view
|
||||
:= gel.Sprite.forge.new_Sprite ("demo.Ground",
|
||||
gel.Sprite.World_view (the_Applet.gui_World),
|
||||
math.Origin_3D,
|
||||
the_ground_graphics_Model,
|
||||
the_ground_physics_Model);
|
||||
:= gel.Sprite.forge.new_Sprite (Name => "demo.Ground",
|
||||
World => gel.Sprite.World_view (the_Applet.gui_World),
|
||||
graphics_Model => the_ground_graphics_Model,
|
||||
physics_Model => the_ground_physics_Model);
|
||||
|
||||
|
||||
the_box_physics_Model : constant physics.Model.view
|
||||
@@ -62,11 +61,10 @@ is
|
||||
Left => (Colors => [others => (Cyan, Opaque)]),
|
||||
Right => (Colors => [others => (Magenta, Opaque)])]);
|
||||
the_Box : constant gel.Sprite.view
|
||||
:= gel.Sprite.forge.new_Sprite ("demo.Box",
|
||||
gel.Sprite.World_view (the_Applet.gui_World),
|
||||
math.Origin_3D,
|
||||
the_box_graphics_Model,
|
||||
the_box_physics_Model);
|
||||
:= gel.Sprite.forge.new_Sprite (Name => "demo.Box",
|
||||
World => gel.Sprite.World_view (the_Applet.gui_World),
|
||||
graphics_Model => the_box_graphics_Model,
|
||||
physics_Model => the_box_physics_Model);
|
||||
begin
|
||||
new_Line;
|
||||
put_Line ("Use arrow keys and PgUp/PgDn to move the camera.");
|
||||
@@ -79,7 +77,7 @@ begin
|
||||
the_Applet.gui_World.add (the_Ground, and_children => False); -- Add ground.
|
||||
the_Ground.Site_is (math.Origin_3D);
|
||||
|
||||
the_Applet.gui_World.add (the_Box, and_Children => False); -- Add ball.
|
||||
the_Applet.gui_World.add (the_Box, and_Children => False); -- Add ball.
|
||||
the_Box.Site_is ([0.0, 10.0, 0.0]);
|
||||
|
||||
while the_Applet.is_open
|
||||
|
||||
Reference in New Issue
Block a user