opengl: Revamp multi-texturing.
This commit is contained in:
@@ -31,7 +31,7 @@ begin
|
||||
--
|
||||
the_Ball_1_Model : constant Model.Sphere.lit_colored_textured.view
|
||||
:= openGL.Model.Sphere.lit_colored_textured.new_Sphere (Radius => 1.0,
|
||||
texture_Details => openGL.texture_Set.to_Details ([1 => the_Texture]),
|
||||
texture_Details => openGL.texture_Set.to_Set ([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,
|
||||
|
||||
@@ -29,14 +29,14 @@ begin
|
||||
:= Model.Billboard.textured.forge.new_Billboard (--Scale => (1.0, 1.0, 1.0),
|
||||
Plane => Billboard.xy,
|
||||
Texture => the_Texture,
|
||||
texture_Details => openGL.texture_Set.to_Details ([1 => the_Texture]));
|
||||
texture_Details => openGL.texture_Set.to_Set ([1 => the_Texture]));
|
||||
|
||||
the_colored_Billboard_Model : constant Model.Billboard.colored_textured.view
|
||||
:= Model.Billboard.colored_textured.new_Billboard (--Scale => (1.0, 1.0, 1.0),
|
||||
Plane => Billboard.xy,
|
||||
Color => (Palette.Green, Opaque),
|
||||
Texture => the_Texture,
|
||||
texture_Details => openGL.texture_Set.to_Details ([1 => the_Texture]));
|
||||
texture_Details => openGL.texture_Set.to_Set ([1 => the_Texture]));
|
||||
-- The Sprites.
|
||||
--
|
||||
use openGL.Visual.Forge;
|
||||
|
||||
@@ -61,7 +61,7 @@ begin
|
||||
Lower => (texture_Name => the_Texture),
|
||||
Left => (texture_Name => the_Texture),
|
||||
Right => (texture_Name => the_Texture)],
|
||||
texture_Details => texture_Set.to_Details ([1 => the_Texture]));
|
||||
texture_Details => texture_Set.to_Set ([1 => the_Texture]));
|
||||
|
||||
-- The Visuals.
|
||||
--
|
||||
|
||||
@@ -37,7 +37,7 @@ begin
|
||||
:= Model.Text.lit_colored.new_Text (Text => "Howdy",
|
||||
Font => the_font_Id,
|
||||
Color => (Red, Opaque),
|
||||
texture_Details => openGL.texture_Set.to_Details ([1 => openGL.to_Asset ("assets/texture/Face1.bmp")]),
|
||||
texture_Details => openGL.texture_Set.to_Set ([1 => openGL.to_Asset ("assets/texture/Face1.bmp")]),
|
||||
Centered => False);
|
||||
|
||||
-- The sprites.
|
||||
|
||||
@@ -56,7 +56,7 @@ begin
|
||||
|
||||
the_ball_Model : constant Model.Sphere.lit_colored_textured.view
|
||||
:= Model.Sphere.lit_colored_textured.new_Sphere (radius => 0.5,
|
||||
texture_Details => texture_Set.to_Details ([1 => the_Face]));
|
||||
texture_Details => texture_Set.to_Set ([1 => the_Face]));
|
||||
|
||||
-- The Sprites.
|
||||
--
|
||||
|
||||
Reference in New Issue
Block a user