with
     openGL.texture_Set;


private
with
     openGL.Geometry.texturing;


package openGL.Geometry.colored_textured
--
--  Supports 'per-vertex' site, color and texture.
--
is
   type Item is new openGL.Geometry.item with private;

   function new_Geometry return access Geometry.colored_textured.item'Class;


   ----------
   --  Vertex
   --

   type Vertex is
      record
         Site   : Vector_3;
         Color  : rgba_Color;
         Coords : Coordinate_2D;
      end record;

   type Vertex_array      is array (long_Index_t range <>) of aliased Vertex;
   type Vertex_array_view is access Vertex_array;


   --------------
   --  Attributes
   --

   procedure Vertices_are (Self : in out Item;   Now       : in Vertex_array);

   overriding
   procedure Indices_are  (Self : in out Item;   Now       : in Indices;
                                                 for_Facia : in Positive);


private

   package textured_Geometry is new texturing.Mixin;


   type Item is new textured_Geometry.item with
      record
         null;
      end record;


   --  type Item is new Geometry.item with
   --     record
   --        null;
   --     end record;
   --
   --
   --  overriding
   --  procedure enable_Textures (Self : in out Item);

end openGL.Geometry.colored_textured;
