Panda3D

userVertexSlider.I

00001 // Filename: userVertexSlider.I
00002 // Created by:  drose (28Mar05)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 
00016 ////////////////////////////////////////////////////////////////////
00017 //     Function: UserVertexSlider::set_slider
00018 //       Access: Published
00019 //  Description: Stores the indicated slider value.
00020 ////////////////////////////////////////////////////////////////////
00021 INLINE void UserVertexSlider::
00022 set_slider(PN_stdfloat slider) {
00023   Thread *current_thread = Thread::get_current_thread();
00024   CDWriter cdata(_cycler, true, current_thread);
00025   cdata->_slider = slider;
00026   mark_modified(current_thread);
00027 }
00028 
00029 ////////////////////////////////////////////////////////////////////
00030 //     Function: UserVertexSlider::CData::Constructor
00031 //       Access: Public
00032 //  Description:
00033 ////////////////////////////////////////////////////////////////////
00034 INLINE UserVertexSlider::CData::
00035 CData() :
00036   _slider(0.0f)
00037 {
00038 }
00039 
00040 ////////////////////////////////////////////////////////////////////
00041 //     Function: UserVertexSlider::CData::Copy Constructor
00042 //       Access: Public
00043 //  Description:
00044 ////////////////////////////////////////////////////////////////////
00045 INLINE UserVertexSlider::CData::
00046 CData(const UserVertexSlider::CData &copy) :
00047   _slider(copy._slider)
00048 {
00049 }
 All Classes Functions Variables Enumerations