Add initial prototype.
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
with
|
||||
openGL.Font,
|
||||
openGL.Geometry;
|
||||
|
||||
|
||||
package openGL.Model.sphere.lit_textured
|
||||
--
|
||||
-- Models a lit and textured sphere.
|
||||
--
|
||||
-- The texture is often a mercator projection to be mapped onto the sphere.
|
||||
--
|
||||
is
|
||||
type Item is new Model.sphere.item with private;
|
||||
type View is access all Item'Class;
|
||||
|
||||
|
||||
function new_Sphere (Radius : in Real;
|
||||
lat_Count : in Positive := default_latitude_Count;
|
||||
long_Count : in Positive := default_longitude_Count;
|
||||
Image : in asset_Name := null_Asset) return View;
|
||||
|
||||
|
||||
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.sphere.item with -- TODO: Add 'Color' component.
|
||||
record
|
||||
Image : asset_Name := null_Asset;
|
||||
end record;
|
||||
|
||||
end openGL.Model.sphere.lit_textured;
|
||||
Reference in New Issue
Block a user