17 #ifndef FCOLLADA_UTILS_H 18 #define FCOLLADA_UTILS_H 24 inline LVecBase3d TO_VEC3(FMVector3 v) {
25 return LVecBase3d(v.x, v.y, v.z);
27 inline LVecBase4d TO_VEC4(FMVector4 v) {
28 return LVecBase4d(v.x, v.y, v.z, v.w);
30 inline LColor TO_COLOR(FMVector4 v) {
31 return LColor(v.x, v.y, v.z, v.w);
33 #define FROM_VEC3(v) (FMVector3(v[0], v[1], v[2])) 34 #define FROM_VEC4(v) (FMVector4(v[0], v[1], v[2], v[3])) 35 #define FROM_MAT4(v) (FMMatrix44(v.getData())) 36 #define FROM_FSTRING(fs) (std::string(fs.c_str())) PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.