opengl.demos: Update code to use new openGL updates.
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
with openGL.Model.texturing;
|
||||
with
|
||||
openGL.Light,
|
||||
openGL.Visual,
|
||||
openGL.Model.Box.lit_textured,
|
||||
openGL.texture_Set,
|
||||
openGL.Palette,
|
||||
openGL.Demo;
|
||||
|
||||
@@ -38,7 +40,8 @@ begin
|
||||
Upper => (texture_Name => the_Texture),
|
||||
Lower => (texture_Name => the_Texture),
|
||||
Left => (texture_Name => the_Texture),
|
||||
Right => (texture_Name => the_Texture)));
|
||||
Right => (texture_Name => the_Texture)),
|
||||
texture_Details => openGL.texture_Set.to_Details ([1 => the_Texture]));
|
||||
-- The Visual.
|
||||
--
|
||||
the_Visuals : constant openGL.Visual.views := (1 => new_Visual (the_Box.all'Access));
|
||||
|
||||
@@ -3,6 +3,7 @@ with
|
||||
openGL.Visual,
|
||||
openGL.Model.Sphere.lit_colored_textured,
|
||||
openGL.Model.Sphere.lit_colored,
|
||||
openGL.texture_Set,
|
||||
openGL.Palette,
|
||||
openGL.Demo;
|
||||
|
||||
@@ -29,8 +30,9 @@ begin
|
||||
-- The Models.
|
||||
--
|
||||
the_Ball_1_Model : constant Model.Sphere.lit_colored_textured.view
|
||||
:= openGL.Model.Sphere.lit_colored_textured.new_Sphere (Radius => 1.0,
|
||||
Image => the_Texture);
|
||||
:= openGL.Model.Sphere.lit_colored_textured.new_Sphere (Radius => 1.0,
|
||||
texture_Details => openGL.texture_Set.to_Details ([1 => the_Texture]),
|
||||
Image => the_Texture);
|
||||
the_Ball_2_Model : constant Model.Sphere.lit_colored.view
|
||||
:= openGL.Model.Sphere.lit_colored.new_Sphere (Radius => 1.0,
|
||||
Color => (light_Apricot, Opaque));
|
||||
|
||||
Reference in New Issue
Block a user