2013-01-23 20:14:11 +00:00
|
|
|
#include "include/Engine.h"
|
|
|
|
#include "main_code.h"
|
|
|
|
|
|
|
|
TMyApplication App;
|
|
|
|
|
|
|
|
|
|
|
|
extern "C" void AppInit()
|
|
|
|
{
|
|
|
|
|
2013-02-04 09:20:51 +00:00
|
|
|
App.OuterInit(320, 480, 320, 480);
|
|
|
|
//App.OuterInit(480, 320, 480, 320);
|
2013-01-23 20:14:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
extern "C" void AppDeinit()
|
|
|
|
{
|
|
|
|
App.OuterDeinit();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
extern "C" void AppUpdate(int dt)
|
|
|
|
{
|
|
|
|
App.OuterUpdate(dt);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
extern "C" void AppDraw()
|
|
|
|
{
|
|
|
|
App.OuterDraw();
|
|
|
|
}
|
|
|
|
|
|
|
|
extern "C" void AppOnTapDown(int posx, int posy)
|
|
|
|
{
|
2013-01-29 20:38:43 +00:00
|
|
|
App.OuterOnTapDown(vec2(posx, posy));
|
2013-01-23 20:14:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
extern "C" void AppOnTapUp(int posx, int posy)
|
|
|
|
{
|
2013-01-29 20:38:43 +00:00
|
|
|
App.OuterOnTapUp(vec2(posx, posy));
|
|
|
|
}
|
|
|
|
|
|
|
|
extern "C" void AppOnTapUpAfterScroll(int posx, int posy)
|
|
|
|
{
|
|
|
|
App.OuterOnTapUpAfterShift(vec2(posx, posy));
|
2013-01-23 20:14:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
extern "C" void AppOnScroll(int shiftx, int shifty)
|
|
|
|
{
|
2013-01-29 20:38:43 +00:00
|
|
|
App.OuterOnMove(vec2(shiftx, shifty));
|
2013-01-23 20:14:11 +00:00
|
|
|
}
|
|
|
|
|