Panda3D
|
00001 // Filename: pta_LMatrix4.h 00002 // Created by: drose (27Feb10) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef PTA_LMATRIX4_H 00016 #define PTA_LMATRIX4_H 00017 00018 #include "pandabase.h" 00019 #include "luse.h" 00020 #include "pointerToArray.h" 00021 00022 //////////////////////////////////////////////////////////////////// 00023 // Class : PTA_LMatrix4f 00024 // Description : A pta of LMatrix4fs. This class is defined once here, 00025 // and exported to PANDA.DLL; other packages that want 00026 // to use a pta of this type (whether they need to 00027 // export it or not) should include this header file, 00028 // rather than defining the pta again. 00029 // 00030 // We actually wrap UnalignedLMatrix4f, in case we are 00031 // building with SSE2 and LMatrix4f requires strict 00032 // alignment. 00033 //////////////////////////////////////////////////////////////////// 00034 00035 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToBase<ReferenceCountedVector<UnalignedLMatrix4f> >) 00036 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToArrayBase<UnalignedLMatrix4f>) 00037 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToArray<UnalignedLMatrix4f>) 00038 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, ConstPointerToArray<UnalignedLMatrix4f>) 00039 00040 typedef PointerToArray<UnalignedLMatrix4f> PTA_LMatrix4f; 00041 typedef ConstPointerToArray<UnalignedLMatrix4f> CPTA_LMatrix4f; 00042 00043 //////////////////////////////////////////////////////////////////// 00044 // Class : PTA_LMatrix4d 00045 // Description : A pta of LMatrix4ds. This class is defined once here, 00046 // and exported to PANDA.DLL; other packages that want 00047 // to use a pta of this type (whether they need to 00048 // export it or not) should include this header file, 00049 // rather than defining the pta again. 00050 // 00051 // We actually wrap UnalignedLMatrix4d, in case we are 00052 // building with SSE2 and LMatrix4d requires strict 00053 // alignment. 00054 //////////////////////////////////////////////////////////////////// 00055 00056 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToBase<ReferenceCountedVector<UnalignedLMatrix4d> >) 00057 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToArrayBase<UnalignedLMatrix4d>) 00058 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToArray<UnalignedLMatrix4d>) 00059 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, ConstPointerToArray<UnalignedLMatrix4d>) 00060 00061 typedef PointerToArray<UnalignedLMatrix4d> PTA_LMatrix4d; 00062 typedef ConstPointerToArray<UnalignedLMatrix4d> CPTA_LMatrix4d; 00063 00064 #ifndef STDFLOAT_DOUBLE 00065 typedef PTA_LMatrix4f PTA_LMatrix4; 00066 typedef CPTA_LMatrix4f CPTA_LMatrix4; 00067 #else 00068 typedef PTA_LMatrix4d PTA_LMatrix4; 00069 typedef CPTA_LMatrix4d CPTA_LMatrix4; 00070 #endif // STDFLOAT_DOUBLE 00071 00072 // Bogus typedefs for interrogate and legacy Python code. 00073 #ifdef CPPPARSER 00074 typedef PTA_LMatrix4 PTAMat4; 00075 typedef CPTA_LMatrix4 CPTAMat4; 00076 typedef PTA_LMatrix4d PTAMat4d; 00077 typedef CPTA_LMatrix4d CPTAMat4d; 00078 #endif // CPPPARSER 00079 00080 // Tell GCC that we'll take care of the instantiation explicitly here. 00081 #ifdef __GNUC__ 00082 #pragma interface 00083 #endif 00084 00085 #endif