gel.forge: Add 'Name' and 'is_Tangible' parameters to polygon and rectangle sprite constructors.
This commit is contained in:
@@ -68,20 +68,24 @@ is
|
|||||||
user_Data : in any_user_Data_view := null) return gel.Sprite.view;
|
user_Data : in any_user_Data_view := null) return gel.Sprite.view;
|
||||||
|
|
||||||
function new_polygon_Sprite (in_World : in gel.World.view;
|
function new_polygon_Sprite (in_World : in gel.World.view;
|
||||||
|
Name : in String;
|
||||||
Site : in math.Vector_3 := math.Origin_3D;
|
Site : in math.Vector_3 := math.Origin_3D;
|
||||||
Mass : in math.Real := 1.0;
|
Mass : in math.Real := 1.0;
|
||||||
Friction : in math.Real := 0.5;
|
Friction : in math.Real := 0.5;
|
||||||
Bounce : in math.Real := 0.5;
|
Bounce : in math.Real := 0.5;
|
||||||
|
is_Tangible : in Boolean := True;
|
||||||
Vertices : in Geometry_2d.Sites;
|
Vertices : in Geometry_2d.Sites;
|
||||||
Color : in openGL.Color := opengl.Palette.White;
|
Color : in openGL.Color := opengl.Palette.White;
|
||||||
Texture : in openGL.asset_Name := openGL.null_Asset;
|
Texture : in openGL.asset_Name := openGL.null_Asset;
|
||||||
user_Data : in any_user_Data_view := null) return gel.Sprite.view;
|
user_Data : in any_user_Data_view := null) return gel.Sprite.view;
|
||||||
|
|
||||||
function new_rectangle_Sprite (in_World : in gel.World.view;
|
function new_rectangle_Sprite (in_World : in gel.World.view;
|
||||||
|
Name : in String;
|
||||||
Site : in math.Vector_3 := math.Origin_3D;
|
Site : in math.Vector_3 := math.Origin_3D;
|
||||||
Mass : in math.Real := 1.0;
|
Mass : in math.Real := 1.0;
|
||||||
Friction : in math.Real := 0.5;
|
Friction : in math.Real := 0.5;
|
||||||
Bounce : in math.Real := 0.5;
|
Bounce : in math.Real := 0.5;
|
||||||
|
is_Tangible : in Boolean := True;
|
||||||
Width,
|
Width,
|
||||||
Height : in math.Real;
|
Height : in math.Real;
|
||||||
Color : in openGL.Color := opengl.Palette.White;
|
Color : in openGL.Color := opengl.Palette.White;
|
||||||
|
|||||||
Reference in New Issue
Block a user