text
stringlengths
0
234
is
the_Vertex : vco_Vertex renames vco_Vertices (Indices ((Each - 1) * 3 + which_vertex));
begin
the_Vertex.tri_Count := the_Vertex.tri_Count + 1;
the_Vertex.Triangles (the_Vertex.tri_Count) := triangle_Id (Each);
the_Vertex.tri_Count_unadded := the_Vertex.tri_Count;
exception
when constraint_Error =>
put_Line ("vco_Triangles max exceeded . .. increase Max_triangles_per_vertex !!");
raise;
Function Definition: procedure deallocate is new ada.unchecked_Deallocation (Impostor'Class, p_Impostor);
Function Body: begin
if o /= null then
destroy (o.all);
end if;
deallocate (o);
Function Definition: procedure deallocate is new ada.unchecked_Deallocation (Impostor'Class, p_Impostor);
Function Body: begin
if o /= null then
destroy (o.all);
end if;
deallocate (o);
Function Definition: function target_camera_Distance (o : in Impostor'Class) return Real
Function Body: is
begin
return o.target_camera_Distance;
Function Definition: procedure Display (o : in out Impostor; clip : in Clipping_data)
Function Body: is
begin
null; -- actual display is done by the renderer (ie glut.Windows), which requests all skinned Geometry's
-- and then applies 'gl state' sorting for performance, before drawing.
end Display;
procedure set_Alpha (o : in out Impostor; Alpha : in GL.Double)
is
begin
null; -- tbd
Function Definition: procedure Display (o : in out Sprite;
Function Body: clip : in Clipping_data)
is
begin
null; -- actual display is done by the renderer (ie glut.Windows), which requests all skinned Geometry's
-- and then applies 'gl state' sorting for performance, before drawing.
end Display;
procedure set_Alpha (o : in out Sprite; Alpha : in GL.Double)
is
begin
null; -- tbd
Function Definition: procedure Display (o : in out tri_Mesh;
Function Body: clip : in Clipping_data)
is
begin
null;
end Display;
procedure set_Vertices (Self : in out tri_Mesh; To : access GL.geometry.GL_vertex_Array)
is
use GL.Geometry, GL.Geometry.primal;
the_Geometry : GL.geometry.primal.primal_Geometry
renames GL.geometry.primal.primal_Geometry (self.skinned_geometry.Geometry.all);
begin
the_Geometry.set_Vertices (to => To);
Function Definition: procedure Skin_is (o : in out tri_Mesh; Now : in GL.skins.p_Skin)
Function Body: is
begin
o.skinned_Geometry.Skin := Now;
o.skinned_Geometry.Veneer := Now.all.new_Veneer (for_geometry => o.skinned_Geometry.Geometry.all);
Function Definition: function Intel_nb is new Intel_x86_number (Unsigned_16);
Function Body: function Intel_nb is new Intel_x86_number (Unsigned_32);
-- Put numbers with correct endianess as bytes
generic
type Number is mod <>; -- range <> in Ada83 version (fake Interfaces)
size : Positive;
function Intel_x86_buffer (n : Number) return Byte_Buffer;
function Intel_x86_buffer (n : Number) return Byte_Buffer is
b : Byte_Buffer (1 .. size);
m : Number := n;
begin
for i in b'Range loop
b (i) := Unsigned_8 (m and 255);
m := m / 256;
end loop;