00001
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #include "std3d.h"
00027
00028 #include "3d/play_list_manager_user.h"
00029 #include "nel/misc/hierarchical_timer.h"
00030
00031 using namespace NLMISC;
00032
00033 namespace NL3D
00034 {
00035
00036
00037
00038 UPlayList *CPlayListManagerUser::createPlayList(UAnimationSet *animSet)
00039 {
00040 NL3D_MEM_PLAYLIST_MANAGER
00041 if(!animSet)
00042 nlerror("createPlayList(): animSet==NULL");
00043
00044 CPlayListUser *pl= new CPlayListUser( safe_cast<CAnimationSetUser*>(animSet)->_AnimationSet );
00045 _PlayLists.insert(pl);
00046
00047 _PlayListManager.addPlaylist(&pl->_PlayList, &pl->_ChannelMixer);
00048
00049 return pl;
00050 }
00051
00052
00053
00054 void CPlayListManagerUser::deletePlayList(UPlayList *playList)
00055 {
00056 NL3D_MEM_PLAYLIST_MANAGER
00057 CPlayListUser *pl= safe_cast<CPlayListUser*>(playList);
00058
00059 _PlayListManager.removePlaylist(&pl->_PlayList);
00060 _PlayLists.erase(pl, "deletePlayList(): bad playList");
00061 }
00062
00063
00064
00065 void CPlayListManagerUser::animate(TGlobalAnimationTime time)
00066 {
00067 NL3D_MEM_PLAYLIST_MANAGER
00068 H_AUTO( NL3D_Render_PlayListMgr_Animate );
00069
00070 _PlayListManager.animate(time);
00071 }
00072
00073
00074
00075 }