opengl.model: Add a lit and textured circle model.

This commit is contained in:
Rod Kay
2023-11-23 23:09:12 +11:00
parent 715394a719
commit f12686d233
8 changed files with 338 additions and 24 deletions

View File

@@ -0,0 +1,25 @@
package openGL.Model.circle
--
-- Provides an abstract model of a circle.
--
is
type Item is abstract new Model.item with private;
-- Sites begin at 'middle right' and proceed in an anti-clockwise direction.
--
function vertex_Sites (Radius : in Real;
Sides : in Positive := 24) return Vector_2_array;
private
type Item is abstract new Model.item with
record
Radius : Real := 1.0;
Sides : Positive range 3 .. 360;
end record;
Normal : constant Vector_3 := [0.0, 0.0, 1.0];
end openGL.Model.circle;