refactored c extensions into one
This commit is contained in:
18
src/main.c
Normal file
18
src/main.c
Normal file
@@ -0,0 +1,18 @@
|
||||
#include "overviewer.h"
|
||||
|
||||
#include <numpy/arrayobject.h>
|
||||
|
||||
static PyMethodDef COverviewerMethods[] = {
|
||||
{"alpha_over", alpha_over_wrap, METH_VARARGS,
|
||||
"alpha over composite function"},
|
||||
{"render_loop", chunk_render, METH_VARARGS,
|
||||
"Renders stuffs"},
|
||||
{NULL, NULL, 0, NULL} /* Sentinel */
|
||||
};
|
||||
|
||||
PyMODINIT_FUNC
|
||||
initc_overviewer(void)
|
||||
{
|
||||
(void) Py_InitModule("c_overviewer", COverviewerMethods);
|
||||
import_array(); // for numpy
|
||||
}
|
||||
Reference in New Issue
Block a user