Exemplo n.º 1
0
NS_CC_BEGIN

#if ND_MOD
CCTouch::CCTouch()
: m_nId(0)
{
	INC_CCOBJ("CCTouch");
}
Exemplo n.º 2
0
CCGLProgram::CCGLProgram()
: m_uProgram(0)
, m_uVertShader(0)
, m_uFragShader(0)
, m_pHashForUniforms(NULL)
{
#if ND_MOD
	INC_CCOBJ("CCGLProgram");
#endif
    memset(m_uUniforms, 0, sizeof(m_uUniforms));
}
Exemplo n.º 3
0
CCTextFieldTTF::CCTextFieldTTF()
: m_pDelegate(0)
, m_nCharCount(0)
, m_pInputText(new std::string)
, m_pPlaceHolder(new std::string)   // prevent CCLabelTTF initWithString assertion
{
#if ND_MOD
	INC_CCOBJ("CCTextFieldTTF");
#endif
    m_ColorSpaceHolder.r = m_ColorSpaceHolder.g = m_ColorSpaceHolder.b = 127;
}
Exemplo n.º 4
0
CCTouchDispatcher::CCTouchDispatcher()
: m_pTargetedHandlers(NULL)
, m_pStandardHandlers(NULL)
, m_pHandlersToAdd(NULL)
, m_pHandlersToRemove(NULL)
{
	INC_CCOBJ("CCTouchDispatcher");

// #if ND_MOD
// 	m_pHandlingTouch = NULL;
// #endif

}
Exemplo n.º 5
0
NS_CC_BEGIN

// CCLayer
CCLayer::CCLayer()
:m_bIsTouchEnabled(false)
,m_bIsAccelerometerEnabled(false)
,m_bIsKeypadEnabled(false)
,m_pScriptHandlerEntry(NULL)
{
#if ND_MOD
	INC_CCOBJ("CCLayer");
#endif
    setAnchorPoint(ccp(0.5f, 0.5f));
    m_bIgnoreAnchorPointForPosition = true;
}
Exemplo n.º 6
0
CCTransitionScene::CCTransitionScene()
{
#if ND_MOD
	INC_CCOBJ("CCTransitionScene");
#endif
}