diff --git a/panda/src/mathutil/config_mathutil.N b/panda/src/mathutil/config_mathutil.N index 2462341234..491a404161 100644 --- a/panda/src/mathutil/config_mathutil.N +++ b/panda/src/mathutil/config_mathutil.N @@ -51,3 +51,18 @@ forcetype PointerToBase > forcetype PointerToArrayBase forcetype PTA_LVecBase2d forcetype CPTA_LVecBase2d + +forcetype PointerToBase > +forcetype PointerToArrayBase +forcetype PTA_LVecBase4i +forcetype CPTA_LVecBase4i + +forcetype PointerToBase > +forcetype PointerToArrayBase +forcetype PTA_LVecBase3i +forcetype CPTA_LVecBase3i + +forcetype PointerToBase > +forcetype PointerToArrayBase +forcetype PTA_LVecBase2i +forcetype CPTA_LVecBase2i diff --git a/panda/src/mathutil/pta_LVecBase2.h b/panda/src/mathutil/pta_LVecBase2.h index c1dba12a10..8a89d075b6 100644 --- a/panda/src/mathutil/pta_LVecBase2.h +++ b/panda/src/mathutil/pta_LVecBase2.h @@ -53,6 +53,23 @@ EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, ConstPointerTo typedef PointerToArray PTA_LVecBase2d; typedef ConstPointerToArray CPTA_LVecBase2d; +//////////////////////////////////////////////////////////////////// +// Class : PTA_LVecBase2i +// Description : A pta of LVecBase2is. This class is defined once here, +// and exported to PANDA.DLL; other packages that want +// to use a pta of this type (whether they need to +// export it or not) should include this header file, +// rather than defining the pta again. +//////////////////////////////////////////////////////////////////// + +EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToBase >) +EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToArrayBase) +EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToArray) +EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, ConstPointerToArray) + +typedef PointerToArray PTA_LVecBase2i; +typedef ConstPointerToArray CPTA_LVecBase2i; + #ifndef STDFLOAT_DOUBLE typedef PTA_LVecBase2f PTA_LVecBase2; typedef CPTA_LVecBase2f CPTA_LVecBase2; diff --git a/panda/src/mathutil/pta_LVecBase3.h b/panda/src/mathutil/pta_LVecBase3.h index 5a9531aca6..f2805a938e 100644 --- a/panda/src/mathutil/pta_LVecBase3.h +++ b/panda/src/mathutil/pta_LVecBase3.h @@ -53,6 +53,23 @@ EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, ConstPointerTo typedef PointerToArray PTA_LVecBase3d; typedef ConstPointerToArray CPTA_LVecBase3d; +//////////////////////////////////////////////////////////////////// +// Class : PTA_LVecBase3i +// Description : A pta of LVecBase3is. This class is defined once here, +// and exported to PANDA.DLL; other packages that want +// to use a pta of this type (whether they need to +// export it or not) should include this header file, +// rather than defining the pta again. +//////////////////////////////////////////////////////////////////// + +EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToBase >) +EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToArrayBase) +EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToArray) +EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, ConstPointerToArray) + +typedef PointerToArray PTA_LVecBase3i; +typedef ConstPointerToArray CPTA_LVecBase3i; + #ifndef STDFLOAT_DOUBLE typedef PTA_LVecBase3f PTA_LVecBase3; typedef CPTA_LVecBase3f CPTA_LVecBase3; diff --git a/panda/src/mathutil/pta_LVecBase4.h b/panda/src/mathutil/pta_LVecBase4.h index e1012a45c7..555d4252b1 100644 --- a/panda/src/mathutil/pta_LVecBase4.h +++ b/panda/src/mathutil/pta_LVecBase4.h @@ -61,6 +61,27 @@ EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, ConstPointerTo typedef PointerToArray PTA_LVecBase4d; typedef ConstPointerToArray CPTA_LVecBase4d; +//////////////////////////////////////////////////////////////////// +// Class : PTA_LVecBase4i +// Description : A pta of LVecBase4is. This class is defined once here, +// and exported to PANDA.DLL; other packages that want +// to use a pta of this type (whether they need to +// export it or not) should include this header file, +// rather than defining the pta again. +// +// We actually wrap UnalignedLVecBase4i, in case we are +// building with SSE2 and LVecBase4i requires strict +// alignment. +//////////////////////////////////////////////////////////////////// + +EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToBase >) +EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToArrayBase) +EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToArray) +EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, ConstPointerToArray) + +typedef PointerToArray PTA_LVecBase4i; +typedef ConstPointerToArray CPTA_LVecBase4i; + #ifndef STDFLOAT_DOUBLE typedef PTA_LVecBase4f PTA_LVecBase4; typedef CPTA_LVecBase4f CPTA_LVecBase4;