Panda3D
 All Classes Functions Variables Enumerations
uvScrollNode.I
00001 // Filename: uvScrollNode.I
00002 // Created by:  zpavlov (30june09)
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: UvScrollNode::Constructor
00018 //       Access: Public
00019 //  Description:
00020 ////////////////////////////////////////////////////////////////////
00021 INLINE UvScrollNode::
00022 UvScrollNode(const string &name, PN_stdfloat u_speed, PN_stdfloat v_speed, PN_stdfloat r_speed) :
00023   PandaNode(name),
00024   _u_speed(u_speed),
00025   _v_speed(v_speed),
00026   _r_speed(r_speed),
00027   _start_time(ClockObject::get_global_clock()->get_frame_time())
00028 {  
00029   set_cull_callback();
00030 }
00031 
00032 ////////////////////////////////////////////////////////////////////
00033 //     Function: UvScrollNode::Constructor
00034 //       Access: Public
00035 //  Description:
00036 ////////////////////////////////////////////////////////////////////
00037 INLINE UvScrollNode::
00038 UvScrollNode(const string &name) :
00039   PandaNode(name),
00040   _u_speed(0),
00041   _v_speed(0),
00042   _r_speed(0),
00043   _start_time(ClockObject::get_global_clock()->get_frame_time())
00044 {  
00045   set_cull_callback();
00046 }
00047 
00048 
00049 ////////////////////////////////////////////////////////////////////
00050 //     Function: UvSctrollNode::set_u_speed
00051 //       Access: Published
00052 //  Description:
00053 ////////////////////////////////////////////////////////////////////
00054 INLINE void UvScrollNode::
00055 set_u_speed(PN_stdfloat u_speed) {
00056   _u_speed = u_speed;
00057 }
00058 
00059 ////////////////////////////////////////////////////////////////////
00060 //     Function: UvSctrollNode::set_v_speed
00061 //       Access: Published
00062 //  Description:
00063 ////////////////////////////////////////////////////////////////////
00064 INLINE void UvScrollNode::
00065 set_v_speed(PN_stdfloat v_speed) {
00066   _v_speed = v_speed;
00067 }
00068 
00069 ////////////////////////////////////////////////////////////////////
00070 //     Function: UvSctrollNode::set_r_speed
00071 //       Access: Published
00072 //  Description:
00073 ////////////////////////////////////////////////////////////////////
00074 INLINE void UvScrollNode::
00075 set_r_speed(PN_stdfloat r_speed) {
00076   _r_speed = r_speed;
00077 }
00078 
00079 ////////////////////////////////////////////////////////////////////
00080 //     Function: UvSctrollNode::get_u_speed
00081 //       Access: Published
00082 //  Description:
00083 ////////////////////////////////////////////////////////////////////
00084 INLINE PN_stdfloat UvScrollNode::
00085 get_u_speed() const {
00086   return _u_speed;
00087 }
00088 
00089 ////////////////////////////////////////////////////////////////////
00090 //     Function: UvSctrollNode::get_v_speed
00091 //       Access: Published
00092 //  Description:
00093 ////////////////////////////////////////////////////////////////////
00094 INLINE PN_stdfloat UvScrollNode::
00095 get_v_speed() const {
00096   return _v_speed;
00097 }
00098 
00099 ////////////////////////////////////////////////////////////////////
00100 //     Function: UvSctrollNode::get_r_speed
00101 //       Access: Published
00102 //  Description:
00103 ////////////////////////////////////////////////////////////////////
00104 INLINE PN_stdfloat UvScrollNode::
00105 get_r_speed() const {
00106   return _r_speed;
00107 }
00108 
00109 ////////////////////////////////////////////////////////////////////
00110 //     Function: UvScrollNode::Copy Constructor
00111 //       Access: Protected
00112 //  Description:
00113 ////////////////////////////////////////////////////////////////////
00114 INLINE UvScrollNode::
00115 UvScrollNode(const UvScrollNode &copy) :
00116   PandaNode(copy),
00117   _u_speed(copy._u_speed),
00118   _v_speed(copy._v_speed),
00119   _r_speed(copy._r_speed),
00120   _start_time(copy._start_time)
00121 {
00122 }
 All Classes Functions Variables Enumerations