00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #include "loaderFileTypeDae.h"
00016 #include "load_collada_file.h"
00017
00018 TypeHandle LoaderFileTypeDae::_type_handle;
00019
00020
00021
00022
00023
00024
00025 LoaderFileTypeDae::
00026 LoaderFileTypeDae() {
00027 }
00028
00029
00030
00031
00032
00033
00034 string LoaderFileTypeDae::
00035 get_name() const {
00036 #if PANDA_COLLADA_VERSION == 14
00037 return "COLLADA 1.4";
00038 #elif PANDA_COLLADA_VERSION == 15
00039 return "COLLADA 1.5";
00040 #else
00041 return "COLLADA";
00042 #endif
00043 }
00044
00045
00046
00047
00048
00049
00050 string LoaderFileTypeDae::
00051 get_extension() const {
00052 return "dae";
00053 }
00054
00055
00056
00057
00058
00059
00060
00061
00062 string LoaderFileTypeDae::
00063 get_additional_extensions() const {
00064 return "zae";
00065 }
00066
00067
00068
00069
00070
00071
00072
00073
00074 bool LoaderFileTypeDae::
00075 supports_compressed() const {
00076 return true;
00077 }
00078
00079
00080
00081
00082
00083
00084 PT(PandaNode) LoaderFileTypeDae::
00085 load_file(const Filename &path, const LoaderOptions &,
00086 BamCacheRecord *record) const {
00087 PT(PandaNode) result = load_collada_file(path, CS_default, record);
00088 return result;
00089 }
00090