opengl: Cosmetics.
This commit is contained in:
@@ -19,33 +19,6 @@ is
|
||||
|
||||
|
||||
|
||||
-- procedure animate (the_Animation : in out Animation;
|
||||
-- texture_Applies : in out texture_Apply_array)
|
||||
-- is
|
||||
-- use ada.Calendar;
|
||||
--
|
||||
-- Now : constant ada.Calendar.Time := Clock;
|
||||
--
|
||||
-- begin
|
||||
-- if Now >= the_Animation.next_frame_Time
|
||||
-- then
|
||||
-- declare
|
||||
-- next_frame_Id : constant frame_Id := (if the_Animation.Current < the_Animation.frame_Count then the_Animation.Current + 1
|
||||
-- else 1);
|
||||
-- old_Frame : Frame renames the_Animation.Frames (the_Animation.Current);
|
||||
-- new_Frame : Frame renames the_Animation.Frames (next_frame_Id);
|
||||
-- begin
|
||||
-- texture_Applies (old_Frame.texture_Id) := False;
|
||||
-- texture_Applies (new_Frame.texture_Id) := True;
|
||||
--
|
||||
-- the_Animation.Current := next_frame_Id;
|
||||
-- the_Animation.next_frame_Time := Now + the_Animation.frame_Duration;
|
||||
-- end;
|
||||
-- end if;
|
||||
-- end animate;
|
||||
|
||||
|
||||
|
||||
procedure animate (Self : in out Item)
|
||||
is
|
||||
use ada.Calendar;
|
||||
@@ -72,33 +45,13 @@ is
|
||||
|
||||
|
||||
|
||||
-----------
|
||||
--- Details
|
||||
---------
|
||||
--- Forge
|
||||
--
|
||||
|
||||
-- function to_Details (texture_Assets : in asset_Names;
|
||||
-- Animation : in Animation_view := null) return Details
|
||||
-- is
|
||||
-- Result : Details;
|
||||
-- begin
|
||||
-- Result.texture_Count := texture_Assets'Length;
|
||||
--
|
||||
-- for i in 1 .. texture_Assets'Length
|
||||
-- loop
|
||||
-- Result.Textures (i) := texture_Assets (i);
|
||||
-- end loop;
|
||||
--
|
||||
-- Result.Animation := Animation;
|
||||
--
|
||||
-- return Result;
|
||||
-- end to_Details;
|
||||
|
||||
|
||||
|
||||
function to_Set (texture_Assets : in asset_Names;
|
||||
texture_Tilings : in Tilings := [others => (S => 1.0,
|
||||
T => 1.0)];
|
||||
|
||||
Animation : in Animation_view := null) return Item
|
||||
is
|
||||
Result : Item (Count => texture_Assets'Length);
|
||||
@@ -126,42 +79,6 @@ is
|
||||
|
||||
|
||||
|
||||
--------------
|
||||
--- Attributes
|
||||
--
|
||||
|
||||
-- function get_Details (Self : in Item) return Detail_array
|
||||
-- is
|
||||
-- begin
|
||||
-- return Self.Details;
|
||||
-- end get_Details;
|
||||
--
|
||||
--
|
||||
--
|
||||
-- procedure Details_are (Self : in out Item; Now : in Detail_array)
|
||||
-- is
|
||||
-- begin
|
||||
-- Self.Details := Now;
|
||||
-- end Details_are;
|
||||
--
|
||||
--
|
||||
--
|
||||
-- function get_Animation (Self : in Item) return Animation_view
|
||||
-- is
|
||||
-- begin
|
||||
-- return Self.Animation;
|
||||
-- end get_Animation;
|
||||
--
|
||||
--
|
||||
--
|
||||
-- procedure Animation_is (Self : in out Item; Now : in Animation_view)
|
||||
-- is
|
||||
-- begin
|
||||
-- Self.Animation := Now;
|
||||
-- end Animation_is;
|
||||
|
||||
|
||||
|
||||
-----------
|
||||
--- Streams
|
||||
--
|
||||
|
||||
Reference in New Issue
Block a user