コード例 #1
0
ファイル: gkGroupManager.cpp プロジェクト: Ali-il/gamekit
// instantiate group-instances that should be create in the specified scene
// for that check all groups from all scenes which will only instantiate valid ones
void gkGroupManager::createGameObjectInstances(gkScene* scene)
{
	GroupAttachements::Iterator it = m_attachements.iterator();
	while (it.hasMoreElements())
	{
		Groups::Iterator sceneGroups = it.getNext().second;
		while (sceneGroups.hasMoreElements())
			sceneGroups.getNext()->createGameObjectInstances(scene);
	}
}
コード例 #2
0
void gkGroupManager::createGameObjectInstances(gkScene* scene)
{
    UTsize pos;
    if ((pos = m_attachements.find(scene)) != UT_NPOS)
    {
        Groups::Iterator it = m_attachements.at(pos).iterator();
        while (it.hasMoreElements())
            it.getNext()->createGameObjectInstances(scene);
    }
}
コード例 #3
0
ファイル: gkGroupManager.cpp プロジェクト: Ali-il/gamekit
void gkGroupManager::destroyStaticBatches(gkScene* scene)
{
	UTsize pos;
	if ((pos = m_attachements.find(scene)) != UT_NPOS)
	{
		Groups::Iterator it = m_attachements.at(pos).iterator();
		while (it.hasMoreElements())
			it.getNext()->destroyStaticBatches(scene);
	}

}