gel.demos: Update code to use new openGL updates.
This commit is contained in:
@@ -13,6 +13,7 @@ is
|
||||
|
||||
function new_Capsule (Radius : in Real;
|
||||
Height : in Real;
|
||||
texture_Details : in texture_Set.Details;
|
||||
Image : in asset_Name := null_Asset) return View
|
||||
is
|
||||
Self : constant View := new Item;
|
||||
@@ -21,6 +22,8 @@ is
|
||||
Self.Height := Height;
|
||||
Self.Image := Image;
|
||||
|
||||
Self.texture_Details_is (texture_Details);
|
||||
|
||||
return Self;
|
||||
end new_Capsule;
|
||||
|
||||
@@ -368,6 +371,10 @@ is
|
||||
cap_2_Geometry := new_Cap (is_Fore => False);
|
||||
end;
|
||||
|
||||
the_shaft_Geometry.Model_is (Self.all'unchecked_Access);
|
||||
cap_1_Geometry .Model_is (Self.all'unchecked_Access);
|
||||
cap_2_Geometry .Model_is (Self.all'unchecked_Access);
|
||||
|
||||
return (1 => the_shaft_Geometry.all'Access,
|
||||
2 => cap_1_Geometry.all'Access,
|
||||
3 => cap_2_Geometry.all'Access);
|
||||
|
||||
Reference in New Issue
Block a user