opengl: Allow models with multiple textures to selectively apply/unapply individual textures.
This commit is contained in:
@@ -118,15 +118,6 @@ is
|
||||
|
||||
|
||||
|
||||
-- function Texture (Self : in Item) return openGL.Texture.Object
|
||||
-- is
|
||||
-- begin
|
||||
-- raise program_Error with "Geometry has no texture.";
|
||||
-- return openGL.Texture.null_Object;
|
||||
-- end Texture;
|
||||
|
||||
|
||||
|
||||
function Texture (Self : in Item; Which : in texture_Set.texture_ID := 1) return openGL.Texture.Object
|
||||
is
|
||||
begin
|
||||
@@ -136,6 +127,15 @@ is
|
||||
|
||||
|
||||
|
||||
function texture_Applied (Self : in Item; Which : in texture_Set.texture_ID := 1) return Boolean
|
||||
is
|
||||
begin
|
||||
raise program_Error with "Geometry has no texture.";
|
||||
return False;
|
||||
end texture_Applied;
|
||||
|
||||
|
||||
|
||||
procedure Program_is (Self : in out Item; Now : in openGL.Program.view)
|
||||
is
|
||||
begin
|
||||
|
||||
Reference in New Issue
Block a user