~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to source/blender/python/api2_2x/Effect.h

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2005-11-06 12:40:03 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051106124003-3pgs7tcg5rox96xg
Tags: 2.37a-1.1
* Non-maintainer upload.
* Split out parts of 01_SConstruct_debian.dpatch again: root_build_dir
  really needs to get adjusted before the clean target runs - closes: #333958,
  see #288882 for reference

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
 
2
 * $Id: Effect.h,v 1.6 2004/10/07 19:25:39 stiv Exp $
2
3
 *
3
4
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
4
5
 *
43
44
#include <BKE_library.h>
44
45
#include <BKE_effect.h>
45
46
 
 
47
#include <DNA_effect_types.h>
 
48
 
46
49
#include"gen_utils.h"
47
 
#include "bpy_types.h"
 
50
 
 
51
extern PyTypeObject Effect_Type;
 
52
 
 
53
#define BPy_Effect_Check(v) ((v)->ob_type==&Effect_Type)
 
54
 
 
55
/* Python BPy_Effect structure definition */
 
56
typedef struct {
 
57
        PyObject_HEAD           /* required py macro */
 
58
        Effect * effect;
 
59
} BPy_Effect;
 
60
 
48
61
 
49
62
/*****************************************************************************/
50
63
/* Python API function prototypes for the Effect module.                     */
51
64
/*****************************************************************************/
52
 
PyObject *M_Effect_New (PyObject *self, PyObject *args);
53
 
PyObject *M_Effect_Get (PyObject *self, PyObject *args);
 
65
PyObject *M_Effect_New( PyObject * self, PyObject * args );
 
66
PyObject *M_Effect_Get( PyObject * self, PyObject * args );
54
67
 
55
68
 
56
69
 
63
76
/*****************************************************************************/
64
77
/* Python Effect_Type callback function prototypes:                          */
65
78
/*****************************************************************************/
66
 
void EffectDeAlloc (BPy_Effect *msh);
 
79
 
 
80
PyObject *Effect_Init( void );
 
81
void EffectDeAlloc( BPy_Effect * msh );
67
82
//int EffectPrint (BPy_Effect *msh, FILE *fp, int flags);
68
 
int EffectSetAttr (BPy_Effect *msh, char *name, PyObject *v);
69
 
PyObject *EffectGetAttr (BPy_Effect *msh, char *name);
70
 
PyObject *EffectRepr (BPy_Effect *msh);
71
 
PyObject* EffectCreatePyObject (struct Effect *effect);
72
 
int EffectCheckPyObject (PyObject *py_obj);
73
 
struct Effect* EffectFromPyObject (PyObject *py_obj);
 
83
int EffectSetAttr( BPy_Effect * msh, char *name, PyObject * v );
 
84
PyObject *EffectGetAttr( BPy_Effect * msh, char *name );
 
85
PyObject *EffectRepr( BPy_Effect * msh );
 
86
PyObject *EffectCreatePyObject( struct Effect *effect );
 
87
int EffectCheckPyObject( PyObject * py_obj );
 
88
struct Effect *EffectFromPyObject( PyObject * py_obj );
74
89
 
75
 
#endif /* EXPP_EFFECT_H */
 
90
#endif                          /* EXPP_EFFECT_H */