Panda3D
panda
src
gobj
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 ©) :
39
_slider(copy._slider)
40
{
41
}
Thread::get_current_thread
get_current_thread
Returns a pointer to the currently-executing Thread object.
Definition:
thread.h:109
CycleDataWriter
This template class calls PipelineCycler::write() in the constructor and PipelineCycler::release_writ...
Definition:
cycleDataWriter.h:34
UserVertexSlider::set_slider
void set_slider(PN_stdfloat slider)
Stores the indicated slider value.
Definition:
userVertexSlider.I:18
Thread
A thread; that is, a lightweight process.
Definition:
thread.h:46
Generated on Sun Dec 27 2020 13:23:04 for Panda3D by
1.8.20