Files
LayaNative2.0/Conch/source/conch/JCSystemConfig.h
T
2020-11-11 16:17:13 +08:00

40 lines
1.1 KiB
C++

#ifndef _LAYA_CONFIG_H__
#define _LAYA_CONFIG_H__
#include <string>
#include <JCWebGLPlus.h>
namespace laya
{
enum FRAME_TYPE
{
FT_SLOW = 0,
FT_FAST,
FT_MOUSE,
};
class JCSystemConfig
{
public:
JCSystemConfig();
void reset();
public:
std::string m_strStartURL;
bool m_bPerfStat; //进行效率统计
FRAME_TYPE m_nFrameType;
double m_nFrameThreshold;
int m_nSleepTime;
int m_nPerf_UpdateNum;
std::string m_strPerfOut;
std::string m_jsonparamExt; //额外参数
bool m_bShowInternalPerBar; //是否显示js ondraw部分和gl的柱状性能图。
bool m_bUseChoreographer; //在android下启用choreographer
static bool s_bIsPlug; //因为初始化太早了,做成static
static bool s_bLocalizable; //设置是否是本地包
bool m_bUseAndroidSystemFont; //是否使用android本身的字体
THREAD_MODE m_nThreadMODE; //线程模式
};
extern JCSystemConfig g_kSystemConfig;
}
#endif