lineParticleRenderer.I 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. // Filename: lineParticleRenderer.I
  2. // Created by: darren (06Oct00)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
  8. //
  9. // All use of this software is subject to the terms of the Panda 3d
  10. // Software license. You should have received a copy of this license
  11. // along with this source code; you will also find a current copy of
  12. // the license at http://www.panda3d.org/license.txt .
  13. //
  14. // To contact the maintainers of this program write to
  15. // [email protected] .
  16. //
  17. ////////////////////////////////////////////////////////////////////
  18. ////////////////////////////////////////////////////////////////////
  19. // Function : set_head_color
  20. // Access : public
  21. ////////////////////////////////////////////////////////////////////
  22. INLINE void LineParticleRenderer::
  23. set_head_color(const Colorf& c) {
  24. _head_color = c;
  25. }
  26. ////////////////////////////////////////////////////////////////////
  27. // Function : set_tail_color
  28. // Access : public
  29. ////////////////////////////////////////////////////////////////////
  30. INLINE void LineParticleRenderer::
  31. set_tail_color(const Colorf& c) {
  32. _tail_color = c;
  33. }
  34. ////////////////////////////////////////////////////////////////////
  35. // Function : get_head_color
  36. // Access : public
  37. ////////////////////////////////////////////////////////////////////
  38. INLINE const Colorf& LineParticleRenderer::
  39. get_head_color(void) const {
  40. return _head_color;
  41. }
  42. ////////////////////////////////////////////////////////////////////
  43. // Function : get_tail_color
  44. // Access : public
  45. ////////////////////////////////////////////////////////////////////
  46. INLINE const Colorf& LineParticleRenderer::
  47. get_tail_color(void) const {
  48. return _tail_color;
  49. }