i hope this works....
This commit is contained in:
parent
e645f3dd0e
commit
61ce6cd8ea
|
|
@ -68,6 +68,26 @@ RB_METHOD(oneshotShake)
|
||||||
return Qnil;
|
return Qnil;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RB_METHOD(oneshotmovewindow)
|
||||||
|
{
|
||||||
|
RB_UNUSED_PARAM;
|
||||||
|
int x, y;
|
||||||
|
rb_get_args(argc, argv, "ii", &x, &y RB_ARG_END);
|
||||||
|
SDL_SetWindowPosition(shState->rtData().window, x, y)
|
||||||
|
return Qnil
|
||||||
|
}
|
||||||
|
|
||||||
|
RB_METHOD(oneshotgetwindowpos)
|
||||||
|
{
|
||||||
|
RB_UNUSED_PARAM;
|
||||||
|
int x, y;
|
||||||
|
SDL_GetWindowPosition(shState->rtData().window, &x, &y);
|
||||||
|
VALUE ary = rb_ary_new;
|
||||||
|
rb_ary_push(ary,x);
|
||||||
|
rb_ary_push(ary,y);
|
||||||
|
return ary
|
||||||
|
}
|
||||||
|
|
||||||
void oneshotBindingInit()
|
void oneshotBindingInit()
|
||||||
{
|
{
|
||||||
VALUE module = rb_define_module("Oneshot");
|
VALUE module = rb_define_module("Oneshot");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue