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

« back to all changes in this revision

Viewing changes to source/blender/python/api2_2x/Blender.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: Blender.h,v 1.10 2004/10/07 19:25:39 stiv Exp $
2
3
 *
3
4
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
4
5
 *
32
33
#ifndef EXPP_BLENDER_H
33
34
#define EXPP_BLENDER_H
34
35
 
35
 
#include <Python.h>
36
 
#include <stdio.h>
37
 
 
38
 
#include <BKE_global.h>
39
 
#include <BSE_headerbuttons.h>
40
 
#include <DNA_ID.h>
41
 
#include <DNA_object_types.h>
42
 
#include <DNA_scene_types.h>
43
 
#include <DNA_screen_types.h> /* for SPACE_VIEW3D */
44
 
#include <DNA_userdef_types.h>
45
 
#include <BKE_ipo.h>
46
 
 
47
 
#include "gen_utils.h"
48
 
#include "modules.h"
49
 
 
50
 
/* From Window.h, used here by Blender_Redraw */
51
 
PyObject *M_Window_Redraw(PyObject *self, PyObject *args);
52
 
 
53
 
/*****************************************************************************/
54
 
/* Python API function prototypes for the Blender module.                                                                                */
55
 
/*****************************************************************************/
56
 
PyObject *Blender_Set (PyObject *self, PyObject *args);
57
 
PyObject *Blender_Get (PyObject *self, PyObject *args);
58
 
PyObject *Blender_Redraw(PyObject *self, PyObject *args);
59
 
PyObject *Blender_ReleaseGlobalDict(PyObject *self, PyObject *args);
60
 
PyObject *Blender_Quit(PyObject *self);
61
 
 
62
 
/*****************************************************************************/
63
 
/* The following string definitions are used for documentation strings.                  */
64
 
/* In Python these will be written to the console when doing a                                                   */
65
 
/* Blender.__doc__                                                                                                                                                                                                                                       */
66
 
/*****************************************************************************/
67
 
char Blender_Set_doc[] =
68
 
"(request, data) - Update settings in Blender\n\
69
 
\n\
70
 
(request) A string identifying the setting to change\n\
71
 
        'curframe'      - Sets the current frame using the number in data";
72
 
 
73
 
char Blender_Get_doc[] =
74
 
"(request) - Retrieve settings from Blender\n\
75
 
\n\
76
 
(request) A string indentifying the data to be returned\n\
77
 
        'curframe'      - Returns the current animation frame\n\
78
 
        'curtime'       - Returns the current animation time\n\
79
 
        'staframe'      - Returns the start frame of the animation\n\
80
 
        'endframe'      - Returns the end frame of the animation\n\
81
 
        'filename'      - Returns the name of the last file read or written\n\
82
 
        'version'       - Returns the Blender version number";
83
 
 
84
 
char Blender_Redraw_doc[] = "() - Redraw all 3D windows";
85
 
 
86
 
char Blender_ReleaseGlobalDict_doc[] =
87
 
"Deprecated, please use the Blender.Registry module solution instead.";
88
 
 
89
 
char Blender_Quit_doc[] =
90
 
"() - Quit Blender. Experimental, please use with caution.";
91
 
 
92
 
/*****************************************************************************/
93
 
/* Python method structure definition.                                                                                                                                                   */
94
 
/*****************************************************************************/
95
 
struct PyMethodDef Blender_methods[] = {
96
 
        {"Set",          Blender_Set, METH_VARARGS, Blender_Set_doc},
97
 
        {"Get",          Blender_Get, METH_VARARGS, Blender_Get_doc},
98
 
        {"Redraw", Blender_Redraw, METH_VARARGS, Blender_Redraw_doc},
99
 
        {"Quit",         (PyCFunction)Blender_Quit, METH_NOARGS, Blender_Quit_doc},
100
 
        {"ReleaseGlobalDict", &Blender_ReleaseGlobalDict,
101
 
                METH_VARARGS, Blender_ReleaseGlobalDict_doc},
102
 
        {NULL, NULL}
103
 
};
104
 
 
105
 
#endif /* EXPP_BLENDER_H */
 
36
extern PyObject *g_blenderdict;
 
37
void M_Blender_Init( void );
 
38
 
 
39
#endif                          /* EXPP_BLENDER_H */