opengl.geometry.texturing: Make 'fade_Level' atomic.

This commit is contained in:
Rod Kay
2023-05-16 15:30:55 +10:00
parent 139cb01643
commit 65ac65b204
2 changed files with 7 additions and 3 deletions

View File

@@ -10,7 +10,9 @@ package openGL.Geometry.texturing
-- --
is is
type fade_Level is delta 0.001 range 0.0 .. 1.0; -- '0.0' is no fading, '1.0' is fully faded (ie invisible). type fade_Level is delta 0.001 range 0.0 .. 1.0 -- '0.0' is no fading, '1.0' is fully faded (ie invisible).
with Atomic;
type fade_Levels is array (texture_Id range <>) of fade_Level; type fade_Levels is array (texture_Id range <>) of fade_Level;

View File

@@ -11,6 +11,7 @@ is
type Item is new Model.item with private; type Item is new Model.item with private;
type View is access all Item'Class; type View is access all Item'Class;
type Face is type Face is
record record
Fades : Geometry.texturing.fade_Levels (Geometry.texture_Id) := [others => 0.0]; Fades : Geometry.texturing.fade_Levels (Geometry.texture_Id) := [others => 0.0];
@@ -49,6 +50,7 @@ is
procedure Texture_is (Self : in out Item; Which : in Geometry.texture_Id; procedure Texture_is (Self : in out Item; Which : in Geometry.texture_Id;
Now : in openGL.asset_Name); Now : in openGL.asset_Name);
overriding
function texture_Count (Self : in Item) return Natural; function texture_Count (Self : in Item) return Natural;