opengl: Revamp multi-texturing.
This commit is contained in:
@@ -10,7 +10,7 @@ is
|
||||
--
|
||||
|
||||
function new_Hexagon (Radius : in Real;
|
||||
texture_Details : in texture_Set.Details) return View
|
||||
texture_Details : in texture_Set.item) return View
|
||||
is
|
||||
Self : constant View := new Item;
|
||||
begin
|
||||
@@ -64,7 +64,7 @@ is
|
||||
the_Geometry.Vertices_are (Vertices);
|
||||
the_Geometry.add (Primitive.view (the_Primitive));
|
||||
|
||||
for i in 1 .. Self.texture_Details.texture_Count
|
||||
for i in 1 .. Self.texture_Details.Count
|
||||
loop
|
||||
Id := texture_Id (i);
|
||||
|
||||
@@ -72,7 +72,7 @@ is
|
||||
-- Now => Self.texture_Details.Fades (Id));
|
||||
|
||||
the_Geometry.Texture_is (Which => Id,
|
||||
Now => Textures.fetch (Self.texture_Details.Textures (i)));
|
||||
Now => Textures.fetch (Self.texture_Details.Details (i).Texture));
|
||||
the_Geometry.is_Transparent (Now => the_Geometry.Texture.is_Transparent);
|
||||
end loop;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user