| 1 |
// |
| 2 |
// SPDX-License-Identifier: BSD-3-Clause |
| 3 |
// Copyright Contributors to the OpenEXR Project. |
| 4 |
// |
| 5 |
|
| 6 |
// clang-format off |
| 7 |
|
| 8 |
#include "PyImathVec4Impl.h" |
| 9 |
#include "PyImathExport.h" |
| 10 |
|
| 11 |
namespace PyImath { |
| 12 |
template <> const char *PyImath::V4cArray::name() { return "V4cArray"; } |
| 13 |
template <> const char *PyImath::V4sArray::name() { return "V4sArray"; } |
| 14 |
template <> const char *PyImath::V4iArray::name() { return "V4iArray"; } |
| 15 |
template <> const char *PyImath::V4i64Array::name() { return "V4i64Array"; } |
| 16 |
|
| 17 |
using namespace boost::python; |
| 18 |
using namespace IMATH_NAMESPACE; |
| 19 |
|
| 20 |
template<> const char *Vec4Name<unsigned char>::value() { return "V4c"; } |
| 21 |
template<> const char *Vec4Name<short>::value() { return "V4s"; } |
| 22 |
template<> const char *Vec4Name<int>::value() { return "V4i"; } |
| 23 |
template<> const char *Vec4Name<int64_t>::value() { return "V4i64"; } |
| 24 |
|
| 25 |
template PYIMATH_EXPORT class_<IMATH_NAMESPACE::Vec4<unsigned char> > register_Vec4<unsigned char>(); |
| 26 |
template PYIMATH_EXPORT class_<IMATH_NAMESPACE::Vec4<short> > register_Vec4<short>(); |
| 27 |
template PYIMATH_EXPORT class_<IMATH_NAMESPACE::Vec4<int> > register_Vec4<int>(); |
| 28 |
template PYIMATH_EXPORT class_<IMATH_NAMESPACE::Vec4<int64_t> > register_Vec4<int64_t>(); |
| 29 |
|
| 30 |
} |
| 31 |
|