axmol/cocos2dx/platform/android/CCXApplication_android.cpp

45 lines
974 B
C++
Raw Normal View History

2010-11-03 11:01:17 +08:00
#include "CCXApplication_android.h"
#include "CCXUIImage_android.h"
#include "CCXEGLView_android.h"
#include "CCDirector.h"
#include <GLES/glext.h>
namespace cocos2d {
static CCXApplication *s_pApplication;
CCXApplication::CCXApplication()
{
s_pApplication = this;
}
CCXApplication::~CCXApplication()
{
}
ccDeviceOrientation CCXApplication::setDeviceOrientation(ccDeviceOrientation eOritation)
{
return eOritation;
}
CGRect CCXApplication::statusBarFrame()
{
CGRect rc;
return rc;
}
2010-11-19 14:57:58 +08:00
void CCXApplication::Run()
{
applicationDidFinishLaunching();
}
2010-11-03 11:01:17 +08:00
//////////////////////////////////////////////////////////////////////////
/// Implement static class member
//////////////////////////////////////////////////////////////////////////
2010-11-19 14:57:58 +08:00
CCXApplication * CCXApplication::sharedApplication()
2010-11-03 11:01:17 +08:00
{
return s_pApplication;
}
}