00001 // Filename: lineParticleRenderer.I 00002 // Created by: darren (06Oct00) 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 // Function : set_head_color 00017 // Access : public 00018 //////////////////////////////////////////////////////////////////// 00019 INLINE void LineParticleRenderer:: 00020 set_head_color(const LColor& c) { 00021 _head_color = c; 00022 } 00023 00024 //////////////////////////////////////////////////////////////////// 00025 // Function : set_tail_color 00026 // Access : public 00027 //////////////////////////////////////////////////////////////////// 00028 INLINE void LineParticleRenderer:: 00029 set_tail_color(const LColor& c) { 00030 _tail_color = c; 00031 } 00032 00033 //////////////////////////////////////////////////////////////////// 00034 // Function : get_head_color 00035 // Access : public 00036 //////////////////////////////////////////////////////////////////// 00037 INLINE const LColor& LineParticleRenderer:: 00038 get_head_color() const { 00039 return _head_color; 00040 } 00041 00042 //////////////////////////////////////////////////////////////////// 00043 // Function : get_tail_color 00044 // Access : public 00045 //////////////////////////////////////////////////////////////////// 00046 INLINE const LColor& LineParticleRenderer:: 00047 get_tail_color() const { 00048 return _tail_color; 00049 } 00050 00051 //////////////////////////////////////////////////////////////////// 00052 // Function : set_line_scale_factor 00053 // Description : accessor 00054 //////////////////////////////////////////////////////////////////// 00055 INLINE void LineParticleRenderer:: 00056 set_line_scale_factor(PN_stdfloat sf) { 00057 _line_scale_factor = sf; 00058 } 00059 00060 //////////////////////////////////////////////////////////////////// 00061 // Function : get_line_scale_factor 00062 // Description : accessor 00063 //////////////////////////////////////////////////////////////////// 00064 INLINE PN_stdfloat LineParticleRenderer:: 00065 get_line_scale_factor() const { 00066 return _line_scale_factor; 00067 } 00068