opengl.geometry.texturing: Add 'Mixin' generic.
This commit is contained in:
@@ -103,6 +103,15 @@ is
|
||||
|
||||
|
||||
|
||||
function Fade (Self : in Item; Which : texture_Set.texture_ID) return texture_Set.fade_Level
|
||||
is
|
||||
begin
|
||||
raise program_Error with "Geometry has no texture.";
|
||||
return texture_Set.fade_Level'Last;
|
||||
end Fade;
|
||||
|
||||
|
||||
|
||||
function Texture (Self : in Item) return openGL.Texture.Object
|
||||
is
|
||||
begin
|
||||
@@ -112,6 +121,15 @@ is
|
||||
|
||||
|
||||
|
||||
function Texture (Self : in Item; Which : in texture_Set.texture_ID) return openGL.Texture.Object
|
||||
is
|
||||
begin
|
||||
raise program_Error with "Geometry has no texture.";
|
||||
return openGL.Texture.null_Object;
|
||||
end Texture;
|
||||
|
||||
|
||||
|
||||
procedure Program_is (Self : in out Item; Now : in openGL.Program.view)
|
||||
is
|
||||
begin
|
||||
|
||||
Reference in New Issue
Block a user