00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef TEXTUREPOOLFILTER_H
00016 #define TEXTUREPOOLFILTER_H
00017
00018 #include "pandabase.h"
00019 #include "texture.h"
00020 #include "pointerTo.h"
00021 #include "typedObject.h"
00022
00023 class LoaderOptions;
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047 class EXPCL_PANDA_GOBJ TexturePoolFilter : public TypedObject {
00048 public:
00049 virtual ~TexturePoolFilter();
00050
00051 virtual PT(Texture) pre_load(const Filename &orig_filename,
00052 const Filename &orig_alpha_filename,
00053 int primary_file_num_channels,
00054 int alpha_file_channel,
00055 bool read_mipmaps,
00056 const LoaderOptions &options);
00057 virtual PT(Texture) post_load(Texture *tex);
00058
00059 virtual void output(ostream &out) const;
00060
00061 public:
00062 static TypeHandle get_class_type() {
00063 return _type_handle;
00064 }
00065 static void init_type() {
00066 TypedObject::init_type();
00067 register_type(_type_handle, "TexturePoolFilter",
00068 TypedObject::get_class_type());
00069 }
00070 virtual TypeHandle get_type() const {
00071 return get_class_type();
00072 }
00073 virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
00074
00075 private:
00076 static TypeHandle _type_handle;
00077 };
00078
00079 INLINE ostream &operator << (ostream &out, const TexturePoolFilter &filter) {
00080 filter.output(out);
00081 return out;
00082 }
00083
00084 #include "texturePoolFilter.I"
00085
00086 #endif