loaderFileTypeEgg.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. // Filename: loaderFileTypeEgg.h
  2. // Created by: drose (20Jun00)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved
  8. //
  9. // All use of this software is subject to the terms of the Panda 3d
  10. // Software license. You should have received a copy of this license
  11. // along with this source code; you will also find a current copy of
  12. // the license at http://etc.cmu.edu/panda3d/docs/license/ .
  13. //
  14. // To contact the maintainers of this program write to
  15. // [email protected] .
  16. //
  17. ////////////////////////////////////////////////////////////////////
  18. #ifndef LOADERFILETYPEEGG_H
  19. #define LOADERFILETYPEEGG_H
  20. #include "pandabase.h"
  21. #include "loaderFileType.h"
  22. ////////////////////////////////////////////////////////////////////
  23. // Class : LoaderFileTypeEgg
  24. // Description : This defines the Loader interface to read Egg files.
  25. ////////////////////////////////////////////////////////////////////
  26. class EXPCL_PANDAEGG LoaderFileTypeEgg : public LoaderFileType {
  27. public:
  28. LoaderFileTypeEgg();
  29. virtual string get_name() const;
  30. virtual string get_extension() const;
  31. virtual bool supports_compressed() const;
  32. virtual PT(PandaNode) load_file(const Filename &path, const LoaderOptions &optoins,
  33. BamCacheRecord *record) const;
  34. public:
  35. static TypeHandle get_class_type() {
  36. return _type_handle;
  37. }
  38. static void init_type() {
  39. LoaderFileType::init_type();
  40. register_type(_type_handle, "LoaderFileTypeEgg",
  41. LoaderFileType::get_class_type());
  42. }
  43. virtual TypeHandle get_type() const {
  44. return get_class_type();
  45. }
  46. virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
  47. private:
  48. static TypeHandle _type_handle;
  49. };
  50. #endif