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

panda/src/shader/spotlightShader.h

Go to the documentation of this file.
00001 // Filename: spotlightShader.h
00002 // Created by:  mike (09Jan97)
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 #ifndef SPOTLIGHTSHADER_H
00019 #define SPOTLIGHTSHADER_H
00020 //
00021 ////////////////////////////////////////////////////////////////////
00022 // Includes
00023 ////////////////////////////////////////////////////////////////////
00024 #include <pandabase.h>
00025 
00026 #include "projtexShader.h"
00027 
00028 ////////////////////////////////////////////////////////////////////
00029 // Defines
00030 ////////////////////////////////////////////////////////////////////
00031 
00032 ////////////////////////////////////////////////////////////////////
00033 //       Class : SpotlightShader
00034 // Description :
00035 ////////////////////////////////////////////////////////////////////
00036 class EXPCL_SHADER SpotlightShader : public ProjtexShader
00037 {
00038 public:
00039   SpotlightShader(int size = 256, float radius = 0.7);
00040 
00041   virtual void config(void);
00042   // SpotlightShader uses ProjtexShader::apply()
00043 
00044 protected:
00045   float                 _radius;
00046 
00047 public:
00048 
00049   static TypeHandle get_class_type() {
00050     return _type_handle;
00051   }
00052   static void init_type() {
00053     ProjtexShader::init_type();
00054     register_type(_type_handle, "SpotlightShader",
00055                     ProjtexShader::get_class_type());
00056   }
00057   virtual TypeHandle get_type() const {
00058     return get_class_type();
00059   }
00060   virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
00061 
00062 private:
00063 
00064   static TypeHandle _type_handle;
00065 };
00066 
00067 #endif

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