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

panda/src/effects/lensFlareNode.I

Go to the documentation of this file.
00001 // Filename: lensFlareNode.I
00002 // Created by:  jason (01Aug00)
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: LensFlareNode::Constructor
00021 //       Access: Public
00022 //  Description:
00023 ////////////////////////////////////////////////////////////////////
00024 INLINE LensFlareNode::
00025 LensFlareNode(void) :
00026   _global_scale(1), _texel_scale(0.1), _blind_fall_off(45), _flare_fall_off(5)
00027 {
00028   _blind = (Texture *)NULL;
00029 }
00030 
00031 ////////////////////////////////////////////////////////////////////
00032 //     Function: LensFlareNode::set_texel_scale
00033 //       Access: Public
00034 //  Description:
00035 ////////////////////////////////////////////////////////////////////
00036 INLINE void LensFlareNode::
00037 set_texel_scale(float texel_to_world)
00038 {
00039   _texel_scale = texel_to_world;
00040 }
00041 
00042 ////////////////////////////////////////////////////////////////////
00043 //     Function: LensFlareNode::set_global_scale
00044 //       Access: Public
00045 //  Description:
00046 ////////////////////////////////////////////////////////////////////
00047 INLINE void LensFlareNode::
00048 set_global_scale(float scale)
00049 {
00050   _global_scale = scale;
00051 }
00052 
00053 ////////////////////////////////////////////////////////////////////
00054 //     Function: LensFlareNode::set_blind_falloff
00055 //       Access: Public
00056 //  Description:
00057 ////////////////////////////////////////////////////////////////////
00058 INLINE void LensFlareNode::
00059 set_blind_falloff(float fall_off)
00060 {
00061   _blind_fall_off = cos(deg_2_rad(fall_off)) - 1;
00062 }
00063 
00064 ////////////////////////////////////////////////////////////////////
00065 //     Function: LensFlareNode::set_flare_falloff
00066 //       Access: Public
00067 //  Description:
00068 ////////////////////////////////////////////////////////////////////
00069 INLINE void LensFlareNode::
00070 set_flare_falloff(float fall_off)
00071 {
00072   _flare_fall_off = cos(deg_2_rad(fall_off)) - 1;
00073 }
00074 
00075 ////////////////////////////////////////////////////////////////////
00076 //     Function: LensFlareNode::set_light
00077 //       Access: Public
00078 //  Description:
00079 ////////////////////////////////////////////////////////////////////
00080 INLINE void LensFlareNode::
00081 set_light_source(PT_Node light)
00082 {
00083  _light_node = light;
00084 }

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