end of cleanup ; naming conventions, balance between c and h files
This commit is contained in:
@@ -44,46 +44,77 @@
|
||||
#include <DNA_effect_types.h>
|
||||
|
||||
#include "gen_utils.h"
|
||||
#include "bpy_types.h"
|
||||
#include "Effect.h"
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Python API function prototypes for the Build module. */
|
||||
/*****************************************************************************/
|
||||
PyObject *M_Build_New (PyObject *self, PyObject *args);
|
||||
PyObject *M_Build_Get (PyObject *self, PyObject *args);
|
||||
/*****************************************************************************/
|
||||
/* The following string definitions are used for documentation strings. */
|
||||
/* In Python these will be written to the console when doing a */
|
||||
/* Blender.Camera.__doc__ */
|
||||
/*****************************************************************************/
|
||||
|
||||
static char M_Build_doc[] =
|
||||
"The Blender Build module\n\
|
||||
This module provides access to **Build Data** objects in Blender\n";
|
||||
|
||||
static char M_Build_New_doc[] =
|
||||
"Build.New ():\n\
|
||||
Return a new Build Data object with the given type and name.";
|
||||
|
||||
static char M_Build_Get_doc[] =
|
||||
"Build.Get (name = None):\n\
|
||||
Return the build data with the given 'name', None if not found, or\n\
|
||||
Return a list with all Build Data objects in the current scene,\n\
|
||||
if no argument was given.";
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Python C_Build structure definition: */
|
||||
/* Python method structure definition for Blender.Build module: */
|
||||
/*****************************************************************************/
|
||||
typedef struct {
|
||||
PyObject_HEAD
|
||||
Effect *build;
|
||||
} C_Build;
|
||||
#include"Effect.h"
|
||||
/*
|
||||
struct PyMethodDef M_Build_methods[] = {
|
||||
{"New",(PyCFunction)M_Build_New, METH_VARARGS, 0},
|
||||
{"Get", M_Build_Get, METH_VARARGS, 0},
|
||||
{"get", M_Build_Get, METH_VARARGS, 0},
|
||||
{NULL, NULL, 0, NULL}
|
||||
};
|
||||
*/
|
||||
/*****************************************************************************/
|
||||
/* Python C_Build methods declarations: */
|
||||
/* Python BPy_Build methods declarations: */
|
||||
/*****************************************************************************/
|
||||
PyObject *Effect_getType(C_Effect *self);
|
||||
PyObject *Effect_setType(C_Effect *self, PyObject *args);
|
||||
PyObject *Effect_getFlag(C_Effect *self);
|
||||
PyObject *Effect_setFlag(C_Effect *self, PyObject *args);
|
||||
PyObject *Build_getLen(C_Build *self);
|
||||
PyObject *Build_setLen(C_Build *self,PyObject*a);
|
||||
PyObject *Build_getSfra(C_Build *self);
|
||||
PyObject *Build_setSfra(C_Build *self,PyObject*a);
|
||||
PyObject *Build_getLen(C_Build *self);
|
||||
PyObject *Build_setLen(C_Build *self,PyObject*a);
|
||||
PyObject *Build_getSfra(C_Build *self);
|
||||
PyObject *Build_setSfra(C_Build *self,PyObject*a);
|
||||
PyObject *Build_getLen(BPy_Build *self);
|
||||
PyObject *Build_setLen(BPy_Build *self,PyObject*a);
|
||||
PyObject *Build_getSfra(BPy_Build *self);
|
||||
PyObject *Build_setSfra(BPy_Build *self,PyObject*a);
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Python BPy_Build methods table: */
|
||||
/*****************************************************************************/
|
||||
static PyMethodDef BPy_Build_methods[] = {
|
||||
{"getLen",(PyCFunction)Build_getLen,
|
||||
METH_NOARGS,"()-Return Build len"},
|
||||
{"setLen",(PyCFunction)Build_setLen, METH_VARARGS,
|
||||
"()- Sets Build len"},
|
||||
{"getSfra",(PyCFunction)Build_getSfra,
|
||||
METH_NOARGS,"()-Return Build sfra"},
|
||||
{"setSfra",(PyCFunction)Build_setSfra, METH_VARARGS,
|
||||
"()- Sets Build sfra"},
|
||||
{0}
|
||||
};
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Python Build_Type callback function prototypes: */
|
||||
/*****************************************************************************/
|
||||
void BuildDeAlloc (C_Build *msh);
|
||||
int BuildPrint (C_Build *msh, FILE *fp, int flags);
|
||||
int BuildSetAttr (C_Build *msh, char *name, PyObject *v);
|
||||
PyObject *BuildGetAttr (C_Build *msh, char *name);
|
||||
PyObject *BuildRepr (C_Build *msh);
|
||||
void BuildDeAlloc (BPy_Build *msh);
|
||||
int BuildPrint (BPy_Build *msh, FILE *fp, int flags);
|
||||
int BuildSetAttr (BPy_Build *msh, char *name, PyObject *v);
|
||||
PyObject *BuildGetAttr (BPy_Build *msh, char *name);
|
||||
PyObject *BuildRepr (BPy_Build *msh);
|
||||
PyObject* BuildCreatePyObject (struct Effect *build);
|
||||
int BuildCheckPyObject (PyObject *py_obj);
|
||||
struct Build* BuildFromPyObject (PyObject *py_obj);
|
||||
|
Reference in New Issue
Block a user