00001 // Filename: cullHandler.h 00002 // Created by: drose (23Feb02) 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 #ifndef CULLHANDLER_H 00020 #define CULLHANDLER_H 00021 00022 #include "pandabase.h" 00023 #include "cullableObject.h" 00024 #include "graphicsStateGuardianBase.h" 00025 00026 //////////////////////////////////////////////////////////////////// 00027 // Class : CullHandler 00028 // Description : This defines the abstract interface for an object 00029 // that receives Geoms identified by the CullTraverser. 00030 // By itself, it's not a particularly useful class; to 00031 // use it, derive from it and redefine record_geom(). 00032 //////////////////////////////////////////////////////////////////// 00033 class EXPCL_PANDA CullHandler { 00034 public: 00035 virtual ~CullHandler(); 00036 00037 virtual void record_object(CullableObject *object); 00038 00039 INLINE static void draw(CullableObject *object, 00040 GraphicsStateGuardianBase *gsg); 00041 static void draw_with_decals(CullableObject *object, 00042 GraphicsStateGuardianBase *gsg); 00043 }; 00044 00045 #include "cullHandler.I" 00046 00047 #endif 00048 00049 00050