Panda3D

pointParticleRenderer.I

00001 // Filename: pointParticleRenderer.I
00002 // Created by:  charles (20Jun00)
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_point_size
00017 //      Access : Public
00018 ////////////////////////////////////////////////////////////////////
00019 INLINE void PointParticleRenderer::
00020 set_point_size(PN_stdfloat point_size) {
00021   _point_size = point_size;
00022   _thick = RenderModeAttrib::make(RenderModeAttrib::M_unchanged, _point_size);
00023 }
00024 
00025 ////////////////////////////////////////////////////////////////////
00026 //    Function : set_start_color
00027 //      Access : Public
00028 ////////////////////////////////////////////////////////////////////
00029 INLINE void PointParticleRenderer::
00030 set_start_color(const LColor& sc) {
00031   _start_color = sc;
00032 }
00033 
00034 ////////////////////////////////////////////////////////////////////
00035 //    Function : set_end_color
00036 //      Access : Public
00037 ////////////////////////////////////////////////////////////////////
00038 INLINE void PointParticleRenderer::
00039 set_end_color(const LColor& ec) {
00040   _end_color = ec;
00041 }
00042 
00043 ////////////////////////////////////////////////////////////////////
00044 //    Function : set_blend_type
00045 //      Access : Public
00046 ////////////////////////////////////////////////////////////////////
00047 INLINE void PointParticleRenderer::
00048 set_blend_type(PointParticleRenderer::PointParticleBlendType bt) {
00049   _blend_type = bt;
00050 }
00051 
00052 ////////////////////////////////////////////////////////////////////
00053 //    Function : set_blend_method
00054 //      Access : Public
00055 ////////////////////////////////////////////////////////////////////
00056 INLINE void PointParticleRenderer::
00057 set_blend_method(BaseParticleRenderer::ParticleRendererBlendMethod bm) {
00058   _blend_method = bm;
00059 }
00060 
00061 ////////////////////////////////////////////////////////////////////
00062 //    Function : get_point_size
00063 //      Access : Public
00064 ////////////////////////////////////////////////////////////////////
00065 INLINE PN_stdfloat PointParticleRenderer::
00066 get_point_size() const {
00067   return _point_size;
00068 }
00069 
00070 ////////////////////////////////////////////////////////////////////
00071 //    Function : get_start_color
00072 //      Access : Public
00073 ////////////////////////////////////////////////////////////////////
00074 INLINE const LColor& PointParticleRenderer::
00075 get_start_color() const {
00076   return _start_color;
00077 }
00078 
00079 ////////////////////////////////////////////////////////////////////
00080 //    Function : get_end_color
00081 //      Access : Public
00082 ////////////////////////////////////////////////////////////////////
00083 INLINE const LColor& PointParticleRenderer::
00084 get_end_color() const {
00085   return _end_color;
00086 }
00087 
00088 ////////////////////////////////////////////////////////////////////
00089 //    Function : get_blend_type
00090 //      Access : Public
00091 ////////////////////////////////////////////////////////////////////
00092 INLINE PointParticleRenderer::PointParticleBlendType PointParticleRenderer::
00093 get_blend_type() const {
00094   return _blend_type;
00095 }
00096 
00097 ////////////////////////////////////////////////////////////////////
00098 //    Function : get_blend_method
00099 //      Access : Public
00100 ////////////////////////////////////////////////////////////////////
00101 INLINE BaseParticleRenderer::ParticleRendererBlendMethod PointParticleRenderer::
00102 get_blend_method() const {
00103   return _blend_method;
00104 }
 All Classes Functions Variables Enumerations