00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef DXGEOMMUNGER9_H
00016 #define DXGEOMMUNGER9_H
00017
00018 #include "pandabase.h"
00019 #include "standardMunger.h"
00020 #include "graphicsStateGuardian.h"
00021 #include "weakPointerTo.h"
00022 #include "weakPointerCallback.h"
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 class EXPCL_PANDADX DXGeomMunger9 : public StandardMunger, public WeakPointerCallback {
00033 public:
00034 INLINE DXGeomMunger9(GraphicsStateGuardian *gsg, const RenderState *state);
00035 virtual ~DXGeomMunger9();
00036 ALLOC_DELETED_CHAIN(DXGeomMunger9);
00037
00038 virtual void wp_callback(void *);
00039
00040 protected:
00041 virtual CPT(GeomVertexFormat) munge_format_impl(const GeomVertexFormat *orig,
00042 const GeomVertexAnimationSpec &animation);
00043 virtual CPT(GeomVertexFormat) premunge_format_impl(const GeomVertexFormat *orig);
00044
00045 virtual int compare_to_impl(const GeomMunger *other) const;
00046 virtual int geom_compare_to_impl(const GeomMunger *other) const;
00047
00048 private:
00049 WCPT(TextureAttrib) _texture;
00050 WCPT(TexGenAttrib) _tex_gen;
00051
00052
00053
00054
00055
00056
00057 const TextureAttrib *_filtered_texture;
00058 bool _reffed_filtered_texture;
00059
00060 static GeomMunger *_deleted_chain;
00061
00062 public:
00063 static TypeHandle get_class_type() {
00064 return _type_handle;
00065 }
00066 static void init_type() {
00067 StandardMunger::init_type();
00068 register_type(_type_handle, "DXGeomMunger9",
00069 StandardMunger::get_class_type());
00070 }
00071 virtual TypeHandle get_type() const {
00072 return get_class_type();
00073 }
00074 virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
00075
00076 private:
00077 static TypeHandle _type_handle;
00078 };
00079
00080 #include "dxGeomMunger9.I"
00081
00082 #endif
00083