Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/particlesystem/pointParticleRenderer.I

Go to the documentation of this file.
00001 // Filename: pointParticleRenderer.I
00002 // Created by:  charles (20Jun00)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 ////////////////////////////////////////////////////////////////////
00020 //    Function : set_point_size
00021 //      Access : Public
00022 ////////////////////////////////////////////////////////////////////
00023 INLINE void PointParticleRenderer::
00024 set_point_size(float point_size) {
00025   _point_primitive->set_size(point_size);
00026   _point_size = point_size;
00027 }
00028 
00029 ////////////////////////////////////////////////////////////////////
00030 //    Function : set_start_color
00031 //      Access : Public
00032 ////////////////////////////////////////////////////////////////////
00033 INLINE void PointParticleRenderer::
00034 set_start_color(const Colorf& sc) {
00035   _start_color = sc;
00036 }
00037 
00038 ////////////////////////////////////////////////////////////////////
00039 //    Function : set_end_color
00040 //      Access : Public
00041 ////////////////////////////////////////////////////////////////////
00042 INLINE void PointParticleRenderer::
00043 set_end_color(const Colorf& ec) {
00044   _end_color = ec;
00045 }
00046 
00047 ////////////////////////////////////////////////////////////////////
00048 //    Function : set_blend_type
00049 //      Access : Public
00050 ////////////////////////////////////////////////////////////////////
00051 INLINE void PointParticleRenderer::
00052 set_blend_type(PointParticleRenderer::PointParticleBlendType bt) {
00053   _blend_type = bt;
00054 }
00055 
00056 ////////////////////////////////////////////////////////////////////
00057 //    Function : set_blend_method
00058 //      Access : Public
00059 ////////////////////////////////////////////////////////////////////
00060 INLINE void PointParticleRenderer::
00061 set_blend_method(BaseParticleRenderer::ParticleRendererBlendMethod bm) {
00062   _blend_method = bm;
00063 }
00064 
00065 ////////////////////////////////////////////////////////////////////
00066 //    Function : get_point_size
00067 //      Access : Public
00068 ////////////////////////////////////////////////////////////////////
00069 INLINE float PointParticleRenderer::
00070 get_point_size(void) const {
00071   return _point_size;
00072 }
00073 
00074 ////////////////////////////////////////////////////////////////////
00075 //    Function : get_start_color
00076 //      Access : Public
00077 ////////////////////////////////////////////////////////////////////
00078 INLINE const Colorf& PointParticleRenderer::
00079 get_start_color(void) const {
00080   return _start_color;
00081 }
00082 
00083 ////////////////////////////////////////////////////////////////////
00084 //    Function : get_end_color
00085 //      Access : Public
00086 ////////////////////////////////////////////////////////////////////
00087 INLINE const Colorf& PointParticleRenderer::
00088 get_end_color(void) const {
00089   return _end_color;
00090 }
00091 
00092 ////////////////////////////////////////////////////////////////////
00093 //    Function : get_blend_type
00094 //      Access : Public
00095 ////////////////////////////////////////////////////////////////////
00096 INLINE PointParticleRenderer::PointParticleBlendType PointParticleRenderer::
00097 get_blend_type(void) const {
00098   return _blend_type;
00099 }
00100 
00101 ////////////////////////////////////////////////////////////////////
00102 //    Function : get_blend_method
00103 //      Access : Public
00104 ////////////////////////////////////////////////////////////////////
00105 INLINE BaseParticleRenderer::ParticleRendererBlendMethod PointParticleRenderer::
00106 get_blend_method(void) const {
00107   return _blend_method;
00108 }

Generated on Fri May 2 00:41:00 2003 for Panda by doxygen1.3