soc-2008-mxcurioni: add all predicate subclasses( BinaryPredicate1D, UnaryPredicate{0D,1D} ).
There is just one more class remaining to port (and probably the most important): Operators. After that, I'll be able to test whether Freestyle functions well without SWIG.
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
#ifndef FREESTYLE_PYTHON_TRUEUP1D_H
|
||||
#define FREESTYLE_PYTHON_TRUEUP1D_H
|
||||
|
||||
#include "../BPy_UnaryPredicate1D.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <Python.h>
|
||||
|
||||
extern PyTypeObject TrueUP1D_Type;
|
||||
|
||||
#define BPy_TrueUP1D_Check(v) (( (PyObject *) v)->ob_type == &TrueUP1D_Type)
|
||||
|
||||
/*---------------------------Python BPy_TrueUP1D structure definition----------*/
|
||||
typedef struct {
|
||||
BPy_UnaryPredicate1D py_up1D;
|
||||
} BPy_TrueUP1D;
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* FREESTYLE_PYTHON_TRUEUP1D_H */
|
||||
Reference in New Issue
Block a user