axmol/cocos2dx/platform/android/CCApplication.h

52 lines
1.0 KiB
C++

#ifndef __CC_APPLICATION_ANDROID_H__
#define __CC_APPLICATION_ANDROID_H__
#include "platform/CCCommon.h"
#include "platform/CCApplicationProtocol.h"
NS_CC_BEGIN
class Rect;
class CC_DLL Application : public ApplicationProtocol
{
public:
Application();
virtual ~Application();
/**
@brief Callback by Director to limit FPS.
@interval The time, expressed in seconds, between current frame and next.
*/
void setAnimationInterval(double interval);
/**
@brief Run the message loop.
*/
int run();
/**
@brief Get current application instance.
@return Current application instance pointer.
*/
static Application* sharedApplication();
/**
@brief Get current language config
@return Current language config
*/
virtual ccLanguageType getCurrentLanguage();
/**
@brief Get target platform
*/
virtual TargetPlatform getTargetPlatform();
protected:
static Application * sm_pSharedApplication;
};
NS_CC_END
#endif // __CC_APPLICATION_ANDROID_H__