openGL.Model.circle.lit_textured: Expose 'Face' attribute.

This commit is contained in:
Rod Kay
2025-04-25 15:53:03 +10:00
parent cfc91c0576
commit 710fae02e7
2 changed files with 14 additions and 4 deletions

View File

@@ -11,7 +11,7 @@ is
-- --
function new_circle (Radius : in Real; function new_circle (Radius : in Real;
Face : in lit_textured.Face; Face : in lit_textured.Face_t;
Sides : in Positive := 24) return View Sides : in Positive := 24) return View
is is
Self : constant View := new Item; Self : constant View := new Item;
@@ -29,6 +29,13 @@ is
--- Attributes --- --- Attributes ---
------------------ ------------------
function Face (Self : in Item) return Face_t
is
begin
return Self.Face;
end Face;
------------ ------------
-- Texturing -- Texturing

View File

@@ -12,7 +12,7 @@ is
type View is access all Item'Class; type View is access all Item'Class;
type Face is type Face_t is
record record
texture_Details : texture_Set.Details; texture_Details : texture_Set.Details;
end record; end record;
@@ -23,7 +23,7 @@ is
-- --
function new_circle (Radius : in Real; function new_circle (Radius : in Real;
Face : in lit_textured.Face; Face : in lit_textured.Face_t;
Sides : in Positive := 24) return View; Sides : in Positive := 24) return View;
@@ -31,6 +31,9 @@ is
--- Attributes --- Attributes
-- --
function Face (Self : in Item) return Face_t;
overriding overriding
function to_GL_Geometries (Self : access Item; Textures : access Texture.name_Map_of_texture'Class; function to_GL_Geometries (Self : access Item; Textures : access Texture.name_Map_of_texture'Class;
Fonts : in Font.font_id_Map_of_font) return Geometry.views; Fonts : in Font.font_id_Map_of_font) return Geometry.views;
@@ -69,7 +72,7 @@ private
type Item is new Model.circle.item with type Item is new Model.circle.item with
record record
Face : lit_textured.Face; Face : lit_textured.Face_t;
end record; end record;
end openGL.Model.circle.lit_textured; end openGL.Model.circle.lit_textured;