本文整理汇总了C++中MFPtrList::Begin方法的典型用法代码示例。如果您正苦于以下问题:C++ MFPtrList::Begin方法的具体用法?C++ MFPtrList::Begin怎么用?C++ MFPtrList::Begin使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MFPtrList
的用法示例。
在下文中一共展示了MFPtrList::Begin方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: MFMaterial_DeinitModule
void MFMaterial_DeinitModule()
{
MFCALLSTACK;
// destroy stock materials
MFMaterial_Destroy(pNoneMaterial);
MFMaterial_Destroy(pWhiteMaterial);
MFMaterial_Destroy(pSysLogoLarge);
MFMaterial_Destroy(pSysLogoSmall);
#if defined(_PSP)
// destroy PSP specific stock materials
MFMaterial_Destroy(pConnected);
MFMaterial_Destroy(pDisconnected);
MFMaterial_Destroy(pPower);
MFMaterial_Destroy(pCharging);
MFMaterial_Destroy(pUSB);
#endif
MaterialDefinition *pDef = pDefinitionRegistry;
while(pDef)
{
MaterialDefinition *pNext = pDef->pNextDefinition;
MFMaterial_DestroyDefinition(pDef);
pDef = pNext;
}
// list all non-freed materials...
MFMaterial **ppI = gMaterialList.Begin();
bool bShowHeader = true;
while(*ppI)
{
if(bShowHeader)
{
bShowHeader = false;
MFDebug_Message("\nUn-freed materials:\n----------------------------------------------------------");
}
MFDebug_Message(MFStr("'%s' - x%d", (*ppI)->pName, (*ppI)->refCount));
(*ppI)->refCount = 1;
MFMaterial_Destroy(*ppI);
ppI++;
}
MFMaterial_UnregisterMaterialType("Standard");
MFMaterial_UnregisterMaterialType("Effect");
gMaterialList.Deinit();
gMaterialDefList.Deinit();
gMaterialRegistry.Deinit();
}
示例2: MFMaterial_Update
void MFMaterial_Update()
{
MFCALLSTACK;
MFMaterial **ppMatIterator = gMaterialList.Begin();
while(ppMatIterator && *ppMatIterator)
{
if((*ppMatIterator)->pType->materialCallbacks.pUpdate)
(*ppMatIterator)->pType->materialCallbacks.pUpdate(*ppMatIterator);
ppMatIterator++;
}
}
示例3: MFCollision_DebugDraw
MF_API void MFCollision_DebugDraw()
{
if(!gShowCollision)
return;
// draw each item..
MFCollisionItem **ppIterator = gItemList.Begin();
while(*ppIterator)
{
MFCollision_DrawItem(*ppIterator);
ppIterator++;
}
}
示例4: MFMaterial_Find
MF_API MFMaterial* MFMaterial_Find(const char *pName)
{
MFCALLSTACK;
MFMaterial **ppIterator = gMaterialList.Begin();
while(*ppIterator)
{
if(!MFString_CaseCmp(pName, (*ppIterator)->pName)) return *ppIterator;
ppIterator++;
}
return NULL;
}
示例5:
MFMaterialType *MaterialInternal_GetMaterialType(const char *pTypeName)
{
MFCALLSTACK;
MFMaterialType **ppIterator = gMaterialRegistry.Begin();
while(*ppIterator)
{
if(!MFString_CaseCmp(pTypeName, (*ppIterator)->pTypeName)) return *ppIterator;
ppIterator++;
}
return NULL;
}