Add initial prototype.

This commit is contained in:
Rod Kay
2022-07-31 17:34:54 +10:00
commit 54a53b2ac0
1421 changed files with 358874 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
with
openGL.Geometry,
openGL.Font,
openGL.Texture;
package openGL.Model.Box.textured
--
-- Models a textured box.
--
-- Each face may have a separate texture.
--
is
type Item is new Model.box.item with private;
type View is access all Item'Class;
type Face is
record
texture_Name : asset_Name := null_Asset;
end record;
type Faces is array (Side) of Face;
---------
--- Forge
--
function new_Box (Size : in Vector_3;
Faces : in textured.Faces;
is_Skybox : in Boolean := False) return View;
--------------
--- Attributes
--
overriding
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;
private
type Item is new Model.box.item with
record
Faces : textured.Faces;
is_Skybox : Boolean := False;
end record;
end openGL.Model.Box.textured;