1
0

Implement SPxx OUT function

This commit is contained in:
otya128
2017-07-03 20:32:44 +09:00
parent ed2f22412c
commit 11f27a035d
3 changed files with 60 additions and 0 deletions

View File

@@ -1021,6 +1021,15 @@ class Sprite
sprites[i].homey = hy;
}
}
void getsphome(int i, out int hx, out int hy)
{
i = spid(i);
synchronized (this)
{
hx = sprites[i].homex;
hy = sprites[i].homey;
}
}
void spscale(int i, double x, double y)
{
i = spid(i);
@@ -1044,11 +1053,21 @@ class Sprite
i = spid(i);
sprites[i].r = rot;
}
void getsprot(int i, out double rot)
{
i = spid(i);
rot = sprites[i].r;
}
void spcolor(int id, uint color)
{
id = spid(id);
sprites[id].color = petitcom.toGLColor(color);
}
void getspcolor(int id, out int color)
{
id = spid(id);
petitcom.fromGLColor(sprites[id].color);
}
void splink(int child, int parent)
{
if(parent >= child)