Panda3D
userVertexSlider.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 userVertexSlider.I
10  * @author drose
11  * @date 2005-03-28
12  */
13 
14 /**
15  * Stores the indicated slider value.
16  */
17 INLINE void UserVertexSlider::
18 set_slider(PN_stdfloat slider) {
19  Thread *current_thread = Thread::get_current_thread();
20  CDWriter cdata(_cycler, true, current_thread);
21  cdata->_slider = slider;
22  mark_modified(current_thread);
23 }
24 
25 /**
26  *
27  */
28 INLINE UserVertexSlider::CData::
29 CData() :
30  _slider(0.0f)
31 {
32 }
33 
34 /**
35  *
36  */
37 INLINE UserVertexSlider::CData::
38 CData(const UserVertexSlider::CData &copy) :
39  _slider(copy._slider)
40 {
41 }
This template class calls PipelineCycler::write() in the constructor and PipelineCycler::release_writ...
void set_slider(PN_stdfloat slider)
Stores the indicated slider value.
A thread; that is, a lightweight process.
Definition: thread.h:46