Panda3D
panda
src
particlesystem
particleSystemManager.I
Go to the documentation of this file.
1
/**
2
* PANDA 3D SOFTWARE
3
* Copyright (c) Carnegie Mellon University. All rights reserved.
4
*
5
* All use of this software is subject to the terms of the revised BSD
6
* license. You should have received a copy of this license along
7
* with this source code in a file named "LICENSE."
8
*
9
* @file particleSystemManager.I
10
* @author charles
11
* @date 2000-06-28
12
*/
13
14
/**
15
16
*/
17
18
INLINE
void
ParticleSystemManager::
19
set_frame_stepping(
int
every_nth_frame) {
20
_nth_frame = every_nth_frame;
21
}
22
23
/**
24
25
*/
26
27
INLINE
int
ParticleSystemManager::
28
get_frame_stepping()
const
{
29
return
_nth_frame;
30
}
31
32
/**
33
34
*/
35
36
INLINE
void
ParticleSystemManager::
37
attach_particlesystem(
ParticleSystem
*ps) {
38
ps->_manager =
this
;
39
plist
< PT(
ParticleSystem
) >::iterator found;
40
PT(
ParticleSystem
) ptps = ps;
41
found = find(_ps_list.begin(), _ps_list.end(), ptps);
42
if
(found == _ps_list.end())
43
_ps_list.push_back(ps);
44
}
45
46
/**
47
48
*/
49
50
INLINE
void
ParticleSystemManager::
51
clear() {
52
_ps_list.erase(_ps_list.begin(), _ps_list.end());
53
}
plist
This is our own Panda specialization on the default STL list.
Definition:
plist.h:35
ParticleSystem
Contains and manages a particle system.
Definition:
particleSystem.h:40
Generated on Wed Jan 23 2019 21:40:08 for Panda3D by
1.8.15