| 1 |
// |
| 2 |
// SPDX-License-Identifier: BSD-3-Clause |
| 3 |
// Copyright Contributors to the OpenEXR Project. |
| 4 |
// |
| 5 |
|
| 6 |
// clang-format off |
| 7 |
|
| 8 |
#ifndef _PyImathRandom_h_ |
| 9 |
#define _PyImathRandom_h_ |
| 10 |
|
| 11 |
#include <Python.h> |
| 12 |
#define BOOST_BIND_GLOBAL_PLACEHOLDERS |
| 13 |
#include <boost/python.hpp> |
| 14 |
#include <ImathRandom.h> |
| 15 |
#include "PyImathExport.h" |
| 16 |
|
| 17 |
namespace PyImath { |
| 18 |
|
| 19 |
PYIMATH_EXPORT boost::python::class_<IMATH_NAMESPACE::Rand32> register_Rand32(); |
| 20 |
PYIMATH_EXPORT boost::python::class_<IMATH_NAMESPACE::Rand48> register_Rand48(); |
| 21 |
|
| 22 |
class PYIMATH_EXPORT Rand32 |
| 23 |
{ |
| 24 |
public: |
| 25 |
static PyObject * wrap (const IMATH_NAMESPACE::Rand32 &r); |
| 26 |
}; |
| 27 |
|
| 28 |
class PYIMATH_EXPORT Rand48 |
| 29 |
{ |
| 30 |
public: |
| 31 |
static PyObject * wrap (const IMATH_NAMESPACE::Rand48 &r); |
| 32 |
}; |
| 33 |
|
| 34 |
} |
| 35 |
|
| 36 |
#endif |