opengl.geometry: Rename 'enable_Texture' to 'enable_Textures'.

This commit is contained in:
Rod Kay
2023-05-29 21:40:17 +10:00
parent 3783591ed1
commit c29d50f544
16 changed files with 24 additions and 24 deletions

View File

@@ -192,7 +192,7 @@ is
overriding
procedure enable_Texture (Self : in out Item)
procedure enable_Textures (Self : in out Item)
is
use GL,
GL.Binding,
@@ -207,7 +207,7 @@ is
then enable (white_Texture);
else enable (Self.Texture);
end if;
end enable_Texture;
end enable_Textures;
end openGL.Geometry.colored_textured;

View File

@@ -43,6 +43,6 @@ private
overriding
procedure enable_Texture (Self : in out Item);
procedure enable_Textures (Self : in out Item);
end openGL.Geometry.colored_textured;

View File

@@ -258,11 +258,11 @@ is
overriding
procedure enable_Texture (Self : in out Item)
procedure enable_Textures (Self : in out Item)
is
begin
null;
end enable_Texture;
end enable_Textures;
end openGL.Geometry.lit_colored_skinned;

View File

@@ -53,6 +53,6 @@ private
overriding
procedure enable_Texture (Self : in out Item);
procedure enable_Textures (Self : in out Item);
end openGL.Geometry.lit_colored_skinned;

View File

@@ -337,11 +337,11 @@ is
overriding
procedure enable_Texture (Self : in out Item)
procedure enable_Textures (Self : in out Item)
is
begin
enable (Self.Textures, Self.Program);
end enable_Texture;
end enable_Textures;

View File

@@ -66,6 +66,6 @@ private
overriding
procedure enable_Texture (Self : in out Item);
procedure enable_Textures (Self : in out Item);
end openGL.Geometry.lit_colored_textured;

View File

@@ -288,7 +288,7 @@ is
overriding
procedure enable_Texture (Self : in out Item)
procedure enable_Textures (Self : in out Item)
is
use GL,
GL.Binding,
@@ -315,7 +315,7 @@ is
else
Self.Texture.enable;
end if;
end enable_Texture;
end enable_Textures;
end openGL.Geometry.lit_colored_textured_skinned;

View File

@@ -53,6 +53,6 @@ private
type Item is new Geometry.item with null record;
overriding
procedure enable_Texture (Self : in out Item);
procedure enable_Textures (Self : in out Item);
end openGL.Geometry.lit_colored_textured_skinned;

View File

@@ -403,7 +403,7 @@ is
overriding
procedure enable_Texture (Self : in out Item)
procedure enable_Textures (Self : in out Item)
is
begin
for i in 1 .. texture_Id (Self.Model.texture_Count)
@@ -418,7 +418,7 @@ is
end loop;
the_texture_count_Uniform.Value_is (Self.texture_Set.Count);
end enable_Texture;
end enable_Textures;
end openGL.Geometry.lit_textured;

View File

@@ -69,6 +69,6 @@ private
overriding
procedure enable_Texture (Self : in out Item);
procedure enable_Textures (Self : in out Item);
end openGL.Geometry.lit_textured;

View File

@@ -262,7 +262,7 @@ is
overriding
procedure enable_Texture (Self : in out Item)
procedure enable_Textures (Self : in out Item)
is
use GL,
GL.Binding,
@@ -289,7 +289,7 @@ is
else
Self.Texture.enable;
end if;
end enable_Texture;
end enable_Textures;
end openGL.Geometry.lit_textured_skinned;

View File

@@ -52,6 +52,6 @@ private
type Item is new Geometry.item with null record;
overriding
procedure enable_Texture (Self : in out Item);
procedure enable_Textures (Self : in out Item);
end openGL.Geometry.lit_textured_skinned;

View File

@@ -225,11 +225,11 @@ is
overriding
procedure enable_Texture (Self : in out Item)
procedure enable_Textures (Self : in out Item)
is
begin
enable (Self.Textures, Self.Program);
end enable_Texture;
end enable_Textures;

View File

@@ -66,6 +66,6 @@ private
overriding
procedure enable_Texture (Self : in out Item);
procedure enable_Textures (Self : in out Item);
end openGL.Geometry.textured;

View File

@@ -184,7 +184,7 @@ is
raise Error with "Unable to render geometry with no primitives.";
end if;
Self .enable_Texture;
Self .enable_Textures;
Self.Program .set_Uniforms;
Self.Vertices.enable;
Self.Program .enable_Attributes;

View File

@@ -83,7 +83,7 @@ is
--
procedure render (Self : in out Item'Class);
procedure enable_Texture (Self : in out Item) is null;
procedure enable_Textures (Self : in out Item) is null;
-----------