gel.forge: Add 'is_Tangible' flag to 'new_circle_Sprite' parameters.
This commit is contained in:
@@ -122,16 +122,17 @@ is
|
|||||||
-- 2D
|
-- 2D
|
||||||
--
|
--
|
||||||
|
|
||||||
function new_circle_Sprite (in_World : in gel.World.view;
|
function new_circle_Sprite (in_World : in gel.World.view;
|
||||||
Name : in String;
|
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;
|
||||||
Radius : in math.Real := 0.5;
|
is_Tangible : in Boolean := True;
|
||||||
Color : in openGL.Color := opengl.Palette.White;
|
Radius : in math.Real := 0.5;
|
||||||
Texture : in openGL.asset_Name := openGL.null_Asset;
|
Color : in openGL.Color := opengl.Palette.White;
|
||||||
user_Data : in any_user_Data_view := null) return gel.Sprite.view
|
Texture : in openGL.asset_Name := openGL.null_Asset;
|
||||||
|
user_Data : in any_user_Data_view := null) return gel.Sprite.view
|
||||||
is
|
is
|
||||||
use openGL;
|
use openGL;
|
||||||
use type Vector_2;
|
use type Vector_2;
|
||||||
@@ -142,8 +143,8 @@ is
|
|||||||
:= physics.Model.Forge.new_physics_Model (shape_Info => (physics.Model.Circle, Radius),
|
:= physics.Model.Forge.new_physics_Model (shape_Info => (physics.Model.Circle, Radius),
|
||||||
Mass => Mass,
|
Mass => Mass,
|
||||||
Friction => Friction,
|
Friction => Friction,
|
||||||
Restitution => Bounce);
|
Restitution => Bounce,
|
||||||
-- Site => Vector_3 (Site & 0.0));
|
is_Tangible => is_Tangible);
|
||||||
begin
|
begin
|
||||||
if Texture = openGL.null_Asset
|
if Texture = openGL.null_Asset
|
||||||
then
|
then
|
||||||
|
|||||||
@@ -53,37 +53,38 @@ is
|
|||||||
-- 2D
|
-- 2D
|
||||||
--
|
--
|
||||||
|
|
||||||
function new_circle_Sprite (in_World : in gel.World.view;
|
function new_circle_Sprite (in_World : in gel.World.view;
|
||||||
Name : in String;
|
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;
|
||||||
Radius : in math.Real := 0.5;
|
is_Tangible : in Boolean := True;
|
||||||
Color : in openGL.Color := opengl.Palette.White;
|
Radius : in math.Real := 0.5;
|
||||||
Texture : in openGL.asset_Name := openGL.null_Asset;
|
Color : in openGL.Color := opengl.Palette.White;
|
||||||
user_Data : in any_user_Data_view := null) return gel.Sprite.view;
|
Texture : in openGL.asset_Name := openGL.null_Asset;
|
||||||
|
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;
|
||||||
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;
|
||||||
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;
|
||||||
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;
|
||||||
Width,
|
Width,
|
||||||
Height : in math.Real;
|
Height : in math.Real;
|
||||||
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;
|
||||||
-- 3D
|
-- 3D
|
||||||
--
|
--
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user