opengl: Rid 'Texture' and 'Texture_is' for texture_Sets.
This commit is contained in:
@@ -77,6 +77,8 @@ is
|
||||
begin
|
||||
-- Define capsule shaft,
|
||||
--
|
||||
the_shaft_Geometry.Model_is (Self.all'unchecked_Access);
|
||||
|
||||
declare
|
||||
vertex_Count : constant Index_t := Index_t (sides_Count * 2 + 2); -- 2 triangles per side plus 2 since we cannot share the first and last edge.
|
||||
indices_Count : constant long_Index_t := long_Index_t (sides_Count * 2 * 3); -- 2 triangles per side with 3 vertices per triangle.
|
||||
@@ -190,8 +192,6 @@ is
|
||||
begin
|
||||
the_shaft_Geometry.add (Primitive.view (the_Primitive));
|
||||
end;
|
||||
|
||||
the_shaft_Geometry.Model_is (Self.all'unchecked_Access);
|
||||
end;
|
||||
|
||||
|
||||
@@ -228,6 +228,8 @@ is
|
||||
|
||||
a, b : Real := 0.0; -- Angular 'cursors' used to track lat/long for texture coords.
|
||||
begin
|
||||
cap_Geometry.Model_is (Self.all'unchecked_Access);
|
||||
|
||||
if not is_Fore
|
||||
then
|
||||
a := Degrees_360;
|
||||
@@ -388,8 +390,6 @@ is
|
||||
end;
|
||||
end;
|
||||
|
||||
cap_Geometry.Model_is (Self.all'unchecked_Access);
|
||||
|
||||
return cap_Geometry;
|
||||
end new_Cap;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user