opengl.texture_set: Add default to 'Which' parameter in 'Texture_is' and 'Texture' subprograms.
This commit is contained in:
@@ -88,7 +88,7 @@ is
|
|||||||
--- Item
|
--- Item
|
||||||
--
|
--
|
||||||
|
|
||||||
procedure Texture_is (in_Set : in out Item; Which : texture_ID; Now : in openGL.Texture.Object)
|
procedure Texture_is (in_Set : in out Item; Which : texture_ID := 1; Now : in openGL.Texture.Object)
|
||||||
is
|
is
|
||||||
begin
|
begin
|
||||||
in_Set.Textures (Which).Object := Now;
|
in_Set.Textures (Which).Object := Now;
|
||||||
@@ -105,7 +105,7 @@ is
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
function Texture (in_Set : in Item; Which : texture_ID) return openGL.Texture.Object
|
function Texture (in_Set : in Item; Which : texture_ID := 1) return openGL.Texture.Object
|
||||||
is
|
is
|
||||||
begin
|
begin
|
||||||
return in_Set.Textures (Which).Object;
|
return in_Set.Textures (Which).Object;
|
||||||
@@ -114,27 +114,27 @@ is
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
function Texture (in_Set : in Item) return openGL.Texture.Object
|
-- function Texture (in_Set : in Item) return openGL.Texture.Object
|
||||||
is
|
-- is
|
||||||
begin
|
-- begin
|
||||||
return in_Set.Textures (1).Object;
|
-- return in_Set.Textures (1).Object;
|
||||||
end Texture;
|
-- end Texture;
|
||||||
|
--
|
||||||
|
--
|
||||||
|
--
|
||||||
|
--
|
||||||
procedure Texture_is (in_Set : in out Item; Now : in openGL.Texture.Object)
|
-- procedure Texture_is (in_Set : in out Item; Now : in openGL.Texture.Object)
|
||||||
is
|
-- is
|
||||||
begin
|
-- begin
|
||||||
in_Set.Textures (1).Object := Now;
|
-- in_Set.Textures (1).Object := Now;
|
||||||
in_Set.is_Transparent := in_Set.is_Transparent
|
-- in_Set.is_Transparent := in_Set.is_Transparent
|
||||||
or Now .is_Transparent;
|
-- or Now .is_Transparent;
|
||||||
|
--
|
||||||
if in_Set.Count = 0
|
-- if in_Set.Count = 0
|
||||||
then
|
-- then
|
||||||
in_Set.Count := 1;
|
-- in_Set.Count := 1;
|
||||||
end if;
|
-- end if;
|
||||||
end Texture_is;
|
-- end Texture_is;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user