opengl.renderer.lean: Add an 'add' procedure to allow manually managing light id's.
This commit is contained in:
@@ -1066,6 +1066,13 @@ is
|
|||||||
end new_Light;
|
end new_Light;
|
||||||
|
|
||||||
|
|
||||||
|
procedure add (Self : in out Item; the_Light : in openGL.Light.item)
|
||||||
|
is
|
||||||
|
begin
|
||||||
|
Self.Lights.add (the_Light);
|
||||||
|
end add;
|
||||||
|
|
||||||
|
|
||||||
procedure set (Self : in out Item; the_Light : in openGL.Light.item)
|
procedure set (Self : in out Item; the_Light : in openGL.Light.item)
|
||||||
is
|
is
|
||||||
begin
|
begin
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ is
|
|||||||
--
|
--
|
||||||
|
|
||||||
function new_Light (Self : in out Item) return Light.item;
|
function new_Light (Self : in out Item) return Light.item;
|
||||||
|
procedure add (Self : in out Item; the_Light : in Light.item);
|
||||||
procedure set (Self : in out Item; the_Light : in Light.item);
|
procedure set (Self : in out Item; the_Light : in Light.item);
|
||||||
procedure rid (Self : in out Item; the_Light : in Light.item);
|
procedure rid (Self : in out Item; the_Light : in Light.item);
|
||||||
function Light (Self : in out Item; Id : in light.Id_t) return openGL.Light.item;
|
function Light (Self : in out Item; Id : in light.Id_t) return openGL.Light.item;
|
||||||
|
|||||||
Reference in New Issue
Block a user