mirror of
https://github.com/geode-sdk/geode.git
synced 2024-12-11 16:41:12 -05:00
ab0030136a
also remove uses of GEODE_ADD for docs
54 lines
1.1 KiB
C++
Vendored
54 lines
1.1 KiB
C++
Vendored
#ifndef __CC_APPLICATION_ANDROID_H__
|
|
#define __CC_APPLICATION_ANDROID_H__
|
|
|
|
#include "../CCCommon.h"
|
|
#include "../CCApplicationProtocol.h"
|
|
|
|
NS_CC_BEGIN
|
|
|
|
class CCRect;
|
|
|
|
class CC_DLL CCApplication : public CCApplicationProtocol
|
|
{
|
|
GEODE_FRIEND_MODIFY
|
|
public:
|
|
CCApplication();
|
|
virtual ~CCApplication();
|
|
|
|
/**
|
|
@brief Callback by CCDirector 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 CCApplication* sharedApplication();
|
|
|
|
static GEODE_DLL CCApplication* get();
|
|
|
|
/**
|
|
@brief Get current language config
|
|
@return Current language config
|
|
*/
|
|
virtual ccLanguageType getCurrentLanguage();
|
|
|
|
/**
|
|
@brief Get target platform
|
|
*/
|
|
virtual TargetPlatform getTargetPlatform();
|
|
|
|
protected:
|
|
static CCApplication * sm_pSharedApplication;
|
|
};
|
|
|
|
NS_CC_END
|
|
|
|
#endif // __CC_APPLICATION_ANDROID_H__
|