[Bf-blender-cvs] [99f9cd0] fluid-mantaflow: extracted manta python api function to new files

Sebastián Barschkis noreply at git.blender.org
Thu Mar 17 19:10:56 CET 2016


Commit: 99f9cd040aefc907318fb81028d84f063b8fd99a
Author: Sebastián Barschkis
Date:   Sun Mar 13 14:19:32 2016 +0100
Branches: fluid-mantaflow
https://developer.blender.org/rB99f9cd040aefc907318fb81028d84f063b8fd99a

extracted manta python api function to new files

===================================================================

A	intern/mantaflow/extern/manta_python_API.h
A	intern/mantaflow/intern/manta_python_API.cpp

===================================================================

diff --git a/intern/mantaflow/extern/manta_python_API.h b/intern/mantaflow/extern/manta_python_API.h
new file mode 100644
index 0000000..c3fe3b3
--- /dev/null
+++ b/intern/mantaflow/extern/manta_python_API.h
@@ -0,0 +1,14 @@
+#ifndef _MANTA_API_H_
+#define _MANTA_API_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+PyObject* PyInit_Manta(void);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/intern/mantaflow/intern/manta_python_API.cpp b/intern/mantaflow/intern/manta_python_API.cpp
new file mode 100644
index 0000000..9300a32
--- /dev/null
+++ b/intern/mantaflow/intern/manta_python_API.cpp
@@ -0,0 +1,11 @@
+#include "Python.h"
+#include "manta_python_API.h"
+#include "manta.h"
+
+using namespace Manta;
+
+PyObject * PyInit_Manta(void)
+{
+	return Pb::PyInit_Main_Obj();
+}
+




More information about the Bf-blender-cvs mailing list