2013-01-19 20:02:34 +00:00
|
|
|
#ifndef SALMON_ENGINE_ANDROID_H_INCLUDED
|
|
|
|
#define SALMON_ENGINE_ANDROID_H_INCLUDED
|
|
|
|
/*
|
|
|
|
This code combines all headers for Salmon engine into one header file
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "include/SalmonEngineInterface.h"
|
|
|
|
|
|
|
|
namespace SE
|
|
|
|
{
|
|
|
|
|
|
|
|
extern TJavaConsole* Console;
|
|
|
|
extern TSalmonRendererAndroid* Renderer;
|
|
|
|
extern TResourceManager* ResourceManager;
|
|
|
|
|
|
|
|
class TApplication : public TApplicationAncestor
|
|
|
|
{
|
|
|
|
protected:
|
|
|
|
public:
|
|
|
|
int X, Y, Width, Height; //Window position and size
|
|
|
|
|
|
|
|
TApplication() : X(0), Y(0), Width(4), Height(4) { }
|
|
|
|
|
|
|
|
virtual void OuterInit(int screenWidth, int screenHeight, float matrixWidth, float matrixHeight);
|
|
|
|
|
|
|
|
virtual void InnerInit() = 0;
|
|
|
|
//To do on init
|
|
|
|
|
|
|
|
virtual void OuterDeinit();
|
|
|
|
|
|
|
|
virtual void InnerDeinit() = 0;
|
|
|
|
//To do on deinit
|
|
|
|
|
|
|
|
virtual void InnerDraw() = 0;
|
|
|
|
//What to draw
|
|
|
|
|
|
|
|
virtual void InnerUpdate(cardinal timer) = 0;
|
|
|
|
//To do on update
|
2013-01-29 19:22:48 +00:00
|
|
|
|
2013-01-19 20:02:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} //namespace SE
|
|
|
|
|
2013-01-29 19:22:48 +00:00
|
|
|
#include "include/GUIManager/WidgetTemplatesImpl.h"
|
|
|
|
|
2013-01-19 20:02:34 +00:00
|
|
|
#endif
|