0

refactored c extensions into one

This commit is contained in:
Aaron Griffith
2011-03-08 17:43:50 -05:00
parent 7555bcf1af
commit 07dd219d20
8 changed files with 123 additions and 268 deletions

18
src/main.c Normal file
View 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
}